문제

I have a RadGridView control in a silverlight project and would like to have the grid come up sorted by the name column. I tried placing the attribute SortingState="Ascending" on the column definition for the name. I do not see any other attributes that might accomplish this. Does anyone know how to make this happen?

도움이 되었습니까?

해결책

You will want to add a SortDescriptor to the grid

<telerik:RadGridView.SortDescriptors>
    <telerik:SortDescriptor Member="Name" SortDirection="Ascending" />
</telerik:RadGridView.SortDescriptors>

다른 팁

Also, what about the 'ColumnSortDescriptor'?

http://demos.telerik.com/silverlight/#GridView/Sorting

There are examples and code there.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top