Hello everyone,
After a long search with my friend google I can not find a solution for my problem, I hope you can help me.
I am developing a Windows application (I use VB.NET and my database is Access), my problem is that I can not filter the list displayed in my DataGridView already filtered before.
I explain,
I have a form that contains a DataGridView linked directly to my Access database, first I need to filter it with a criterion A and then I would like to apply another filter according to a criterion B on only the final list that I got after the application of
the 1st filter.
My problem is, when I apply my second filter, the tool filters the entire database and not just the list I have already obtained after the first filter.
here is my code:
PrivateSub ComboBox1_TextChanged(sender AsObject, e As EventArgs)Handles ComboBox1.TextChanged If ComboBox59.SelectedItem = "Castings"Then DataGridView1.DataSource.defaultview.rowfilter = ("Castings like '%"& 1& "%' and Match >= "& ComboBox1.Text & " ") Else EndIfmy first filter is with the combobox59: Castings like '% "& 1 &,
my second filter is with combobox1: Match> = "& ComboBox1.Text &".
I would be grateful if someone can help me,
Thank you in advance