I have a datagridview in which one of the columns is a checkbox. I handle the CellContentClick event to update information everytime the user check or uncheck one of the checkboxes. It works great. My problem is that when I double click a checkbox CellContentClick is called and then CellContentDoubleClick after that. I want to annul the call for CellContentDoubleClick. Is there a way to do this?
You can remove event handler from datagrid.
EventHandler eventHandler = new EventHandler(YourdataGridview_CellContentDoubleClick);
YourdataGridview.CellContentDoubleClick -= eventHandler;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With