Thanks.
Everything was solved. Ignore the rest.
(There are situation, that when I do commitEdit, and reach the
CellValueChanged, I am in state of edit mode. co I can do endEdit on some
circumstances,
I.e, when the checkbox is invalid value, for some cases, and I need to
restore it to original value).
Thanks
"Phill W." <p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote in message
news:hvvfd3$j9k$(E-Mail Removed)...
> 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.