改为EditedFormattedValue可以了 { //TODO } } } 上面事件和里面方法可能不匹配
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
if ((bool)dataGridView1.Rows[i].Cells[0].EditedFormattedValue==true) //之前用value,值一直不乱,改为EditedFormattedValue可以了
{
//TODO
}
}
}
上面事件和里面要领可能不匹配,是找的结合到一起的,,但不影响看
标签:
原文地点:https://www.cnblogs.com/dachuang/p/8671267.html
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/33956.html