0
我正在尝试使用Web服务的结果填充组合列表框。 Web服务返回一个包含两列的数据集。我想显示第一列给用户,并且用户从combox中选择一个项目来捕获第二列。通过使用返回数据集的Web服务来填充组合框
现在我可以显示第一列并捕获选择。
不知道如何将第二列的连接添加到组合框并捕获选择。
任何帮助将不胜感激!
代码到目前为止....
myDataSet1 = proxy3.listSuppLang()
Dim x As Integer
Dim dt As DataTable = myDataSet1.Tables(0)
Dim myString As String = ""
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
'some code
For x = 0 To dt.Rows.Count - 1
myString = dt.Rows(x).Item(0)
ComboBox1.Items.Add(myString)
Next
ComboBox1.Visible = True
End If