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

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
 
T

Tony Johansson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top