Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 silverlight 项目中有一个 RadGridView 控件,并希望网格按名称列排序。我尝试将属性 SortingState="Ascending" 放在名称的列定义上。我没有看到任何其他可能实现这一点的属性。有谁知道如何做到这一点?
您需要将 SortDescriptor 添加到网格中
<telerik:RadGridView.SortDescriptors> <telerik:SortDescriptor Member="Name" SortDirection="Ascending" /> </telerik:RadGridView.SortDescriptors>
另外,“ColumnSortDescriptor”呢?
http://demos.telerik.com/silverlight/#GridView/Sorting
那里有示例和代码。