Datagridview - CellValueChanged when User changes the cell

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?  
Who is Participating?
Jorge PaulinoIT Pro/DeveloperCommented:
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
adwooley2Author Commented:
Yes, I had that, but in the wrong place.  Appreciate the help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.