1 foreach (DataGridViewRow dgR in this.dataGridView1.Rows) 
2
3     try 
4     {                     
5         DataGridViewCheckBoxCell cbx = (DataGridViewCheckBoxCell)dgR.Cells[0]; 
6         if ((bool)cbx.FormattedValue) 
7         { 
8             //TODO:                  
9         } 
10          
11     } 
12     catch (Exception ex) 
13     { 
14         MessageBox.Show(ex.Message); 
15     } 
16  
17

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2021-12-14
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2021-10-01
  • 2021-09-15
  • 2021-06-12
  • 2021-11-15
  • 2022-01-15
相关资源
相似解决方案