I have a DataGrid with only one column is editable. It is a
DataGridViewCheckBoxColumn.
I want to detect if the any checkbox state is changed. So I listen to
ColumnChanged event.
But whenever user click the checkbox, and checkbox state changed, but the
event is not fired until the user click anywhere else in the grid or in the
parent form.
Is there a nice way to detect it "earlier"?
Thanks a lot!
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
Ryan Liu
Shanghai Fengpu Software Co. Ltd
Shanghai , China
http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
RobinS - 24 Feb 2008 19:00 GMT
Assuming it's a DataGridView and not a DataGrid (two different things), try
capturing one of the other events, like the CellValueChanged event, or
CellBeginEdit/CellEndEdit. I don't know for certain that they will work, but
it seems like the next thing to try.
RobinS.
------------------------
>I have a DataGrid with only one column is editable. It is a
> DataGridViewCheckBoxColumn.
[quoted text clipped - 20 lines]
> http://www.fpsoft.net.cn
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.