Hello,
Set your DataGridViewCheckBoxCell position as per Cells[0]
In followning DataGridViewCheckBoxCell is added first position.
Added Cell Click event as following way
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)dataGridView1.Rows[e.RowIndex].Cells[0];
if ((bool)cell.Value == true)
{
cell.Value = "false";
}
else
{
cell.Value = "true";
}
}
Hope this helpful!
Thanks