Quantcast
Viewing all articles
Browse latest Browse all 27077

VS 2012 Filtering the filtered bindingsource results

Hi Guys!

Code:

Private Sub ToolStripTextBox1_TextChanged(sender As Object, e As EventArgs) Handles ToolStripTextBox1.TextChanged
        Dim str As String() = ToolStripTextBox1.Text.Split(" ")
        For Each value As String In str
            Me.Contact_InfoBindingSource.Filter = String.Format("Name LIKE '%" & value & "%' OR Surname LIKE'%" & value & "%' OR Address LIKE'%" & value & "%'")
        Next
    End Sub
End Class

This fills a datagrid.

Now, on str(1), it resets the results found by str(0).
I want to filter str(1) within the filtered results previouslyby str(0)

Thanks a lot!

Viewing all articles
Browse latest Browse all 27077

Trending Articles