Dim dv As New DataView(TheDataTableObject)
dv.RowFilter = "Column1 = 'SearchString'"
AlexCode said:«He pah!! N me digas q és Portugues e q fazes forms com essas cores!!»
Use the RowFilter from the DataView Object...
Visual Basic:Dim dv As New DataView(TheDataTableObject) dv.RowFilter = "Column1 = 'SearchString'"
Note:
You must set the dataview as the DataSource of the control that will display the results.
Alex
dv.RowFilter = "ColumnName LIKE '*product*'"
If dv.Count = 0 Then
MessageBox.Show("Not Found")
Else
MessageBox.Show("Found")
End If