开发者

how to fill datagridcombobox in vb.net

开发者 https://www.devze.com 2023-01-15 00:51 出处:网络
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
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.

0

精彩评论

暂无评论...
验证码 换一张
取 消