0

I have a DataGridView where a column is DataGridViewCheckBoxColumn. How can I check whether the CheckBox inside of a cell of the column is checked?

Emetrop
  • 322
  • 1
  • 4
  • 13
  • see: http://stackoverflow.com/questions/18439758/how-to-know-a-specific-checkbox-inside-datagridview-is-checked-or-not – ColinE Dec 21 '13 at 17:44

1 Answers1

1

Try This:

        bool status=(bool)dataGridView3.Rows[0].Cells[0].Value;
        if (status)
        {
            MessageBox.Show("Checked");
        }
        else
        {
            MessageBox.Show("Not Checked");
        }
Sudhakar Tillapudi
  • 25,935
  • 5
  • 37
  • 67