This is a migrated thread and some comments may be shown as answers.

Adding sort descriptor with sort direction ascending sorts the grid in descending.

0 Answers 149 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pankaj
Top achievements
Rank 1
Pankaj asked on 17 Nov 2011, 07:33 AM
Hi,
I have added a sort descriptor as follows:
<!-- define initial sorting by name-->
            <telerik:RadGridView.SortDescriptors>
                <telerik:SortDescriptor Member="Name"
                                        SortDirection="Ascending"/>
            </telerik:RadGridView.SortDescriptors>

Now when i open the grid view name column has ascending arrow showing that the grid is programattically set to sort the records ascending, but when i add records to this grid records are added with their names in descending manner. If i change the sort direction to descending in above code then records are sorted in ascending manner. Why records are sorted in opposite direction?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Pankaj
Top achievements
Rank 1
Share this question
or