我有一个列表框..如果我选择任何我想在我的数据表中获取它的项目,所以我给出了这样的代码:
Dim dtlist As New DataTable()
Dim locid As Integer
If cnt > 0 Then
For i = 0 To cnt - 1
Dim locationanme As String = LSTlocations.SelectedItems(i).ToString
locid = RecordID("Locid", "Location_tbl", "LocName", locationanme)
dtlist.Columns.Add(locid)
Next
end if
然后我想检查我的数据表是否包含我的列表框选择的值。我想显示这些值我该怎么做?