WPF ObjectDataProvider that supports linq filtering?

590 views Asked by At

Is there an WPF ObjectDataProvider that supports "Where" I mean like in asp.net there is an option to have a dataprovider that supports defining the results?

What I actually need is two ComboBoxes that when I choose a value in the first it limits the second one. Say I have a parent table Category and a child table Group. I want that when the user chooses a value in the category combo box, the values in the group should be only where Group.CategoryId = [Selected category Id].

And notice that I am talking about wpf toolkit DataGridComboBoxColumn.

1

There are 1 answers

0
Shimmy Weitzhandler On BEST ANSWER

The answer is: Yes, CollectionViewSource that has Filter event, and can be explicitly refreshed by calling it's View.Refresh method.

(Answer credit)