detect ColumnChanged event "earlier"

R

Ryan Liu

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
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 
R

RobinS

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.
 

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