foreach (DataGridViewRow dgvRow in dgvShow.Rows)
{
maxSeqinarchivenum++;
if (dgvRow.Cells[0] is System.Windows.Forms.DataGridViewCheckBoxCell)
{
DataGridViewCheckBoxCell dc = (DataGridViewCheckBoxCell)dgvRow.Cells[0];
if (dc.FormattedValue.ToString() == "True")
{
MessageBox.Show("True");
}
else
{
MessageBox.Show("False");
}
}
}