Hi!
I need again some advice.
I allow the user to edit a row or add a new row in a datagridview. I then handle the dgv.Validating and dgv.Validated events so I can update the database. Now I added a Cancel button. However, when I press the cancel button, the validating and validated events are fired before I can set a variable( so that I know the user wants to cancel this edit).
What is the correct way to get the information about the cancel_button click to the validating and validated events at the time they get handled?
Kind regards,
Andy
I need again some advice.
I allow the user to edit a row or add a new row in a datagridview. I then handle the dgv.Validating and dgv.Validated events so I can update the database. Now I added a Cancel button. However, when I press the cancel button, the validating and validated events are fired before I can set a variable( so that I know the user wants to cancel this edit).
What is the correct way to get the information about the cancel_button click to the validating and validated events at the time they get handled?
Kind regards,
Andy