I'm using this code:
// Cell value change event.
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
if ((bool)dataGridView1.CurrentCell.Value == true) MessageBox.Show("true");
if ((bool)dataGridView1.CurrentCell.Value == false) MessageBox.Show("false");
MessageBox.Show(dataGridView1.CurrentCell.Value.ToString());
}
It works fine for all columns, except for one column with a checkbox (DataGridViewCheckBoxColumn
)
I need to know the value in the checkbox column (true or false).
What do I need to do for this?