C# Winform 怎样判断 datagridview 中的checkbox列是否被选中

01.for (int i = 0; i < dataGridView1.Rows.Count; i++)   
02.{   
03.    if ((bool)dataGridView1.Rows[i].Cells[0].EditedFormattedValue==true)   
04.      {   
05.        //TODO    
06.      }   
07.}
原文地址:https://www.cnblogs.com/yongfeiuall/p/4134168.html