How to add a checkbox column at first column of datagridview?

aspfun

Active member
Joined
Feb 16, 2010
Messages
34
Programming Experience
5-10
How to add a checkbox column at first column of datagridview?
After adding, how to code to "check all" or "uncheck all"?
 
How to add a checkbox column at first column of datagridview?
Create a DataGridViewCheckBoxColumn and add it to the grid's Columns collection. You can do that in the designer or in code.
After adding, how to code to "check all" or "uncheck all"?
Use a For Each loop to enumerate the Rows of the grid and set the Value of the first Cell to True or False.
 
Back
Top