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?  
adwooley2Asked:
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
0
 
adwooley2Author Commented:
Yes, I had that, but in the wrong place.  Appreciate the help.
Regards,
Alan
0
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.