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

Column Must Always be sorted

2 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 31 Aug 2011, 02:43 PM
I have a GridView that always needs to be alphabetically sorted by name, no matter what happens the grid (filtered, sorted by other columns, grouped, new rows added, etc)

Is there any way to do this? I'm guessing it will be in code behind, but I'm not sure where to put what.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 31 Aug 2011, 02:48 PM
Hello,

 Why not sort your data before assign ItemsSource for the grid?

Regards,
Vlad
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Rayne
Top achievements
Rank 1
answered on 31 Aug 2011, 04:22 PM
Thanks. I tried that, and it seems to be keeping that base sort order no matter what other column I sort by.
Tags
GridView
Asked by
Rayne
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Rayne
Top achievements
Rank 1
Share this question
or