| 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 | } |
相关文章: