dachuang
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

    }

  }  

}

上面事件和里面方法可能不匹配,是找的结合到一起的,但不影响看

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2021-08-29
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
相关资源
相似解决方案