开发者

WPF ObjectDataProvider that supports linq filtering?

开发者 https://www.devze.com 2022-12-11 19:26 出处:网络
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?

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 DataGridComboBoxColum开发者_JAVA技巧n.


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

(Answer credit)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号