Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ resources

5. Windows Forms Datagrid

5.28 How do I determine whether a checkbox in my datagrid is checked or not?


If the column is a boolean column, you can just cast the object returned by the indexer to a bool and use it.

if((bool)dataGridTopics[row, column])
     MessageBox.Show("I am true");
else
     MessageBox.Show("I am false");