Find Row Match Like with TextBox |
Call thi sub when TextBox1 Changed:
Sub DGVFind(ByVal key As String)
Dim rc() As DataRow = DataSet1.Tables(0).Select("name like '" & key & "*'")
DataGridView1.Rows.Clear()
For Each r As DataRow In rc
DataGridView1.Rows.Add(r.ItemArray)
Next
Dim rc() As DataRow = DataSet1.Tables(0).Select("name like '" & key & "*'")
DataGridView1.Rows.Clear()
For Each r As DataRow In rc
DataGridView1.Rows.Add(r.ItemArray)
Next
End Sub
Wow!!!! There are some pretty exciting presentations in this list..Your post reflects extensive research..
ReplyDeleteHey. thanks :-)
ReplyDelete