I have a WinForm with a DataGridView
control. It contains a CheckBox
column.
I use a CellMouseClick
event with evaluation of the current column index for the evaluation. Another form opens after clicking on the check box regardless of the logical state of the check box.
Depending on the outcome of the input in the new form, I try to set the State
of the check box.
Unfortunately, my setting is overridden by the default behavior of the check box.
I.e. if the check box was set, finally it is unset and vice versa.
My question is, if there is a possibility to suppress or work around this behavior. Possibly something like e.Handled
?
I have also used the CellContentClick
event but the result is the same.