You will need to know the ID (name) of your CheckBox.
I called mine "cb1".
private void button1_Click(object sender, EventArgs e)
{
CheckBox cb = (CheckBox)dataGridView1.Controls["cb1"];
if (cb.Checked)
{
MessageBox.Show("Checked");
}
else
{
MessageBox.Show("NOT Checked");
}
}
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402