在dataGridView1c#中选中复选框的somme
本文关键字:somme 复选框 dataGridView1c# | 更新日期: 2023-09-27 18:22:37
如何在我的数据网格视图中获取一些数据,例如:
如果我在第3列中检查adrian,我将得到adrian=1,如果我也检查第4列,我将获得adrian=2,但nicola有0
查看图片
http://s27.postimg.org/b7dg9znub/image.jpg
请问我该怎么做?
我想你想这样做
check = new Guid(grddata.Rows[e.RowIndex].Cells["Gid"].Value.ToString());
check1 = grddata.Rows[e.RowIndex].Cells["Name"].Value.ToString();