WPF ObjectDataProvider that supports linq filtering?
-
19-09-2019 - |
Question
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.
Solution
The answer is: Yes, CollectionViewSource that has Filter event, and can be explicitly refreshed by calling it's View.Refresh method.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow