foreach (DataGridViewRow row in dgvScreenDetails.Rows) { DataGridViewCheckBoxCell chk = row.Cells[2] as DataGridViewCheckBoxCell; // number 0 represents the 1st column of dgv! if (Convert.ToBoolean(chk.Value) == true) { MessageBox.Show("this cell checked"); } }
as
DataGridViewCheckBoxCell chk = row.Cells[2] as DataGridViewCheckBoxCell;
if
chk
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)