16,554
社区成员
发帖
与我相关
我的任务
分享
for i as integer = 0 to datagridview.rows.count -1
if datagridview.rows(i).cell("是否").value then
'已选..OOXX XXOO
endif
next
'动态添加CheckBox列
Dim cel As New DataColumn("确认", System.Type.GetType("System.Boolean"))
dst.Tables(0).Columns.Add(cel)
cel.SetOrdinal(1)
DataGridView1.DataSource = dst.Tables(0)