Private Sub txtSearch_TextChanged(sender As Object, e As EventArgs) Handles txtSearch.TextChanged
Dim dv As DataView = New DataView()
dv.Table = RepDataSet.receipts
dv.RowFilter = "[List_name] Like '%" & txtSearch.Text & "%'"
Datagridview1.DataSource = dv
End Sub
dv.RowFilter = "[Doc_no] Like '%" & txtSearch.Text & "%'"
Code (VBScript)
Private Sub txtSearch_TextChanged(sender As Object, e As EventArgs) Handles txtSearch.TextChanged
Dim dv As DataView = New DataView()
dv.Table = RepDataSet.receipts
dv.RowFilter = "[List_name] Like '%" & txtSearch.Text & "%'"
dv.RowFilter = "[Doc_no] Like '%" & txtSearch.Text & "%'"
Datagridview1.DataSource = dv
End Sub
Private Sub txtSearch_TextChanged(sender As Object, e As EventArgs) Handles txtSearch.TextChanged
Dim dv As DataView = New DataView()
dv.Table = RepDataSet.receipts
dv.RowFilter = "(List_name Like '%" & txtSearch.Text & "%') OR (Doc_no Like '%" & txtSearch.Text & "%')"
repData.DataSource = dv
End Sub