![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I use dataGridView, and one of it's elements is a checkBox. How can I catch the event, exactly when the checkBox is changed. I want exactly when the checkBox.checked is changed (DataGridViewCheckBoxCell). |
#3
| |||
| |||
|
|
On 24/06/2010 11:54, Mr. X. wrote: When I use dataGridView, and one of it's elements is a checkBox. How can I catch the event, exactly when the checkBox is changed. I want exactly when the checkBox.checked is changed (DataGridViewCheckBoxCell). Handle the CurrentCellDirtyStateChanged event; in this routine, if the CurrentCell happens to be a DataGridViewCheckBoxCell, call CommitEdit; that should get the CellChanged event to fire straight away. HTH, Phill W. |
#4
| |||
| |||
|
|
Thanks. How can I see the "dirty" new-value. On CurrentCellDirtyStateChanged, I can see the old-value. Thanks ![]() "Phill W." <p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote in message news:hvvfd3$j9k$1 (AT) south (DOT) jnrs.ja.net... On 24/06/2010 11:54, Mr. X. wrote: When I use dataGridView, and one of it's elements is a checkBox. How can I catch the event, exactly when the checkBox is changed. I want exactly when the checkBox.checked is changed (DataGridViewCheckBoxCell). Handle the CurrentCellDirtyStateChanged event; in this routine, if the CurrentCell happens to be a DataGridViewCheckBoxCell, call CommitEdit; that should get the CellChanged event to fire straight away. HTH, Phill W. |
#5
| |||
| |||
|
|
On 24/06/2010 11:54, Mr. X. wrote: When I use dataGridView, and one of it's elements is a checkBox. How can I catch the event, exactly when the checkBox is changed. I want exactly when the checkBox.checked is changed (DataGridViewCheckBoxCell). Handle the CurrentCellDirtyStateChanged event; in this routine, if the CurrentCell happens to be a DataGridViewCheckBoxCell, call CommitEdit; that should get the CellChanged event to fire straight away. HTH, Phill W. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |