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

Programmatically Sorting a GridView

2 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Frustrated Dev
Top achievements
Rank 1
Frustrated Dev asked on 06 Mar 2010, 07:25 PM
Hello,

I am using the Telerik RadGridView. One of my columns uses a custom Header. When a user clicks a specific set of text within this Header, I would like to sort the data in the RadGridView. Is there a way to programmatically sort the contents of a RadGridView? If so, how?

Thank you,

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Mar 2010, 08:13 AM
Hello Frustrated Dev,

Indeed you can sort the grid programmatically - all you need is to add desired SortDescriptor in SortDescriptors collection.

Greetings,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Frustrated Dev
Top achievements
Rank 1
answered on 08 Mar 2010, 10:22 PM
But how do you add a SortDescriptor? I do not understand how they work and I have not seen any documentation for them.
Tags
GridView
Asked by
Frustrated Dev
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Frustrated Dev
Top achievements
Rank 1
Share this question
or