全选或取消时判断一下是昌弯否闷掘选耐罩闷中:
for (int i = 0; i < this.dataGridView1.Rows.Count; i++)
{
if ((bool)dataGridView1.Rows[i].Cells["mark"].EditedFormattedValue==true)
{
this.dataGridView1.Rows[i].Cells["mark"].Value = false;
}
}
通过js 来全部选中