开发者

WPF ObjectDataProvider that supports linq filtering?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜