Home » FAQ » WinForms » Datagrid » 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');
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with