简体   繁体   English

在Silverlight DataGrid上对行进行排序

[英]Sorting rows on Silverlight DataGrid

I know Silverlight is almost dead, but I have an application in Silverlight that I have to maintain till the product owner allows migrating. 我知道Silverlight快要死了,但是我必须维护Silverlight中的一个应用程序,直到产品所有者允许迁移为止。

I've noticed that in some DataGrids user can sort data, although I noticed that in DataGrids that have RowDetails this is not possible. 我注意到在某些DataGrids中用户可以对数据进行排序,尽管我注意到在具有RowDetails的DataGrid中这是不可能的。 Is that some limitation of Silverlight or is there some work around? 是Silverlight的某些限制还是可以解决的?

在属性上使用SortMemberPath ,以便该列将排序或暗示Sorting事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM