Is it possible to catch the event when a cell in a datagridView is changed

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

The docs for the DataGridView.CellValueChanged event is saying the following
"The DataGridView.CellValueChanged event occurs when the user-specified
value is committed, which typically occurs when focus leaves the cell."

Now is it possible to catch some other event when the value in a cell is
changed but before the focus leaves the cell.

I want to use it to set a flag to indicate that the DataGridView has been
changed.
The flag is checked when you try to close the Form

//Tony
 
Tony Johansson said:
Hello!

The docs for the DataGridView.CellValueChanged event is saying the
following
"The DataGridView.CellValueChanged event occurs when the user-specified
value is committed, which typically occurs when focus leaves the cell."

Now is it possible to catch some other event when the value in a cell is
changed but before the focus leaves the cell.

I want to use it to set a flag to indicate that the DataGridView has been
changed.
The flag is checked when you try to close the Form

//Tony

I use a workaround to set fucus to another control on the form

//Tony
 
Back
Top