DataGridView / EndEdit and CellValidating event

A

azerty

Hello

I have a DatagridView with a checkBoxColumn.
When I Check with mouse a row (and so toggle the checkBox) I want launch a
EndEdit() method on my DataGridView

I can do this with an tips : I create a class inherits from
DataGridViewCheckBoxCell and plug an instance on my column by CellTemplate
property, this class override OnMouseDown method ...

BUT I want launch something like CellValidating event on my datagrid (or
somewhere) to intercept the check and perhaps cancel the user's change
(becaule a rule will not be respected)

this event is not launched !! :-( It is just launched When I change the
current cell !!

How can I do this ?

It seem very basic functionnality, It is certainely possible to do this, but
How ????

thanks for your help !
 

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