Datagridview - CellValueChanged when User changes the cell

Posted on 2007-07-31
Last Modified: 2008-01-09
Hello.  More Datagridview headaches.  I am putting code into CellValueChanged, but this gets fired when the datagridview is loading.  Is there a way to detect whether the user is actually editting the datagridview versus the initial loading?  
Question by:adwooley2
    LVL 48

    Accepted Solution

    Add a bool variable to your app and set it to false. In the end of the form load event set it to True. Then compare in the CellValueChanged if not variable then exit sub

    Author Comment

    Yes, I had that, but in the wrong place.  Appreciate the help.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now