如何在vb.net中填充datagridcombobox

时间:2010-09-08 05:51:39

标签: sql-server-2005

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("Slno").trim
    DataGridView1.Rows.Item(n).Cells(1).Value = dsrow2.Item("Prodcode").trim
    DataGridView1.Rows.Item(n).Cells(2).Value = dsrow2.Item("Remarks").trim
Next

此代码提供与datagridcombobox相关的错误。

0 个答案:

没有答案