0%

vb.net 循环读取 DataGridView 值

循环输出 DataGridView 内容

1
2
3
4
5
6
Dim i, j As Integer
For i = 0 To DataGridView1.RowCount - 1
For j = 0 To DataGridView1.ColumnCount - 1
MsgBox(DataGridView1.Item(j, i).Value)
Next
Next
觉得文章有用?请我喝杯咖啡~