We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to add checkbox into datagrid

Can anyone highlight me how to add checkbox into datagrid using C#. Thanks

1 Reply

SL Stephen Loughin December 9, 2004 03:29 PM UTC

This is covered in the UserGuide, but try the following: (assuming you''ve already added a row to a grid called ''myGrid''): myGrid[i,j].CellType="CheckBox"; myGrid[i,j].TriState=false; where i is the row that you''ve added, and j is the column (also previously added) in which you want your check box to appear. >Can anyone highlight me how to add checkbox into datagrid using C#. Thanks

Loader.
Live Chat Icon For mobile
Up arrow icon