Home Forums WinForms controls Xceed Grid for WinForms GridCheckBox in InsertionRow always looks like checked.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #12730 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    Hi Tommy,

    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.

    Cheers!

    Imported from legacy forums. Posted by PL (had 3534 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.