I have a ListBox, bound to a DataSet. It displays column1 of the DataSet. Now I want to filter column2 so that the ListBox only displays the rows found with the filtervalue (from a textLabel) in column2.
Dim foundRow As DataRow
Dim findTheseVals(0) As Object
findTheseVals(0) = lblFilter.Text
foundRow = (Me.objDataSet1.Tables("MyTable".Rows.Find(findTheseVals))
If Not (foundRow Is Nothing) Then
Try
' Well, here I'm stucked. Looking for something like:
ListBox1.Select(findTheseVals)
Catch eEndEdit As System.Exception
System.Windows.Forms.MessageBox.Show(eEndEdit.Message)
End Try
End If
Anybody with a hint?
Thanks
Fritz
Dim foundRow As DataRow
Dim findTheseVals(0) As Object
findTheseVals(0) = lblFilter.Text
foundRow = (Me.objDataSet1.Tables("MyTable".Rows.Find(findTheseVals))
If Not (foundRow Is Nothing) Then
Try
' Well, here I'm stucked. Looking for something like:
ListBox1.Select(findTheseVals)
Catch eEndEdit As System.Exception
System.Windows.Forms.MessageBox.Show(eEndEdit.Message)
End Try
End If
Anybody with a hint?
Thanks
Fritz