private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { int index = e.RowIndex; if ((bool)dataGridView2.Rows[index].Cells[0].Value == true) { //The data is true //Cells[0] is the checkbox control //dataGridView2.Rows[index].Cells[0].Value returns an object so you must cast it to a boll using (bool) } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)