I need to write a wrapper that would allow me to sort and filter a QueryObject without loosing the sync capabilities of the object (it’s for DataGridView data binding).
This seems like what I need, but it’s in the upcomming (beta I think?) EF 5, while I’m still only on EF 3.5. I need to mimic that feature in a older version.
I found a wrapper that enabled me to sort, but not filter and I fail to figure out which path to take to add Filter support in this wrapper. This wrapper also looses the sync with the QueryObject, but I don’t think that would be hard to fix.
You can extend BindingSource to create a seperation from the displayed data and the actual data. After that, using Dynamic LINQ, it is possible to write filter methods that will work with any type of data.