I am try to filter the DataGrid based on user input. I have a text box and a combo box. One contains the column and one contains the value.
When I hit the Search button it seems to apply the filter, but it doesn't leave any in the view. For Example, if I put artist in cmbSearchBy and Ryan in txtSearchFor, it does not leave those entries in the dataview.
Thanks in advnace for the help.
Code:
Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click Dim strFilter As String Dim FilterFor As String strFilter = cmbSearchBy.Text FilterFor = txtSearchFor.Text InfoBindingSource.Filter = (strFilter = Filterfor) End Sub
Thanks in advnace for the help.
Comment