Dim n As Integer = DataGridView1.Rows.Add()
For Each dsrow2 As DataRow In dslocal2.Tables(0).Rows
DataGridView1.Rows.Item(n).Cells(0).Value = dsrow2.Item("Sl开发者_运维百科no").trim
DataGridView1.Rows.Item(n).Cells(1).Value = dsrow2.Item("Prodcode").trim
DataGridView1.Rows.Item(n).Cells(2).Value = dsrow2.Item("Remarks").trim
Next
This code is giving an error related to datagridcombobox.
精彩评论