开发者

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

开发者 https://www.devze.com 2022-12-23 02:42 出处:网络
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

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

精彩评论

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