开发者

How to define descending sort order (in XAML) for DataGrid in SL/WPF?

In order to define column sorting the SortMemberPath c开发者_运维技巧an be used. But how can I define that this column shall be sorted descending?


I am not sure this will help but you may want to look at the CollectionViewSource Class. There is a SortDescriptions property where the sort order can be set. Take a look at this post for some sample code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜