CheckBox - Header Collum

0
0

How Do I, implement a checkBox in a header of a collum in a DataGridview?

I Want to select all checkbox using this checkBox in the header.

  • You must to post comments
0
0

Jay,

  • add a tool to your header cell
  • handle the ToolClick event
  • iterate through all rows and set the checkbox cell to checked/not checked

Best regards
Frank

  • Frank (ITG)
    PS: instead of adding a tool you could also use the Control property of the HeaderCell to add a checkbox and handle its CheckedChanged event to set/unset the row checkboxes.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.