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

[Solved] Sort Columns Programmatically

1 Answer 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dennis
Top achievements
Rank 1
dennis asked on 18 Mar 2009, 02:31 PM
How i can sort a column programmatically? or is another way to refresh the ui of the gridview?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 18 Mar 2009, 02:42 PM
Hello dennis,

You can add desired SortDescription in RadGridView.SortDescriptions to achieve this. Here is an example:

RadGridView1.SortDescriptions.Add(new SortDescription("CustomerID", ListSortDirection.Descending));

Best wishes,
Vlad
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
dennis
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or