When I use a GridCheckBox as viewer and editor for a column, the checkbox in the InsertionRow always looks like checked. The grid is bound to a DataTable, and the default value for that boolean column is false. Even when I do something like:
insertionRow1.Cells[“upload”].Value = false; // upload is the boolean column
… the checkbox still won’t clear.
Is there a solution for this?
Imported from legacy forums. Posted by Tommy (had 2335 views)
You need to subscribe to the insertion row’s .EditBegun event and set the checkboxed cell’s .value to false. This way, when the user click on the insertion row, the checkbox will clear itself. However, it will still appear checked when not editing the insertion row. The only way to clear the checkbox for now would be to handle the paint event and draw the empty square yourself.
I will add a feature request in order to have the possibility to choose whether the gridCheckBox is checked or not in the insertion row.
Imported from legacy forums. Posted by PL (had 3534 views)