Hi,
Can someone help me pls why this doesn't seem to work?
private void dataGridViewempl_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (dataGridViewempl.CurrentCell.ColumnIndex == 6)
{
CheckBox deletebox = new CheckBox();
deletebox = (CheckBox)dataGridViewempl.CurrentCell.Value;
if (deletebox != null)
{
if (deletebox.Checked == false)
deletebox.Checked = true;
else
deletebox.Checked = false;
}
}
}
Really appreciate it. Thanks much!