hello Otis;
it's me again
I have lots of datagrids in my project. I use both TypedLists and Collections to fill my datagrids.
I hope you can help me to write a filtering code that I can use with both TypedLists and Collections.
Actually, I have a filtering code for TypedLists but I couldn't make it work for the Collections.
SomeTableTypedList someTableTypedList1 = new SomeTableTypedList();
someTableTypedList1.Fill();
someTableTypedList1.DefaultView.RowFilter = "SomeField LIKE '"+TextBoxSomeField.Text+"*' ";
DataGrid1.DataSource = someTableTypedList1;
DataGrid1.DataBind();
this works for TypedLists, but collections don't have a DefaultView property. is there a way to handle filtering of Collections, similar to typedLists?
Note: I don't want to use FieldLikePredicate b'cuz if it involves, my work would become much a disaster.