Hi,
I hope it will help you
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
CheckUncheckDGV(checkBox1.Checked);
}
private void CheckUncheckDGV(bool state)
{
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
dataGridView1.Rows[i].Cells[0].Value = state;
dataGridView1.Rows[i].Cells[1].Value = state;
}
}
Best Regards,
C.Gnanadurai
-----------------------
Please mark the post as answer if it is helpfull to you