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.
Up arrow icon