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

How to sort ?

3 Answers 200 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 23 Jun 2010, 07:07 PM
This is probably a very dumb question.
But basically. I have 2 datatables that I merged together. 
I then assigned the resulting dataTable as the datasource of my GridView.
However the rows in the dataTable are not in the order I want the end user to see. 
So I want to Sort the gridview. I'm not seeing a Sort Method on the control. 

How can I sort by the first column (descending)?

Thanks. 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Jun 2010, 11:16 AM
Hi Phillip Foster,

Thank you for writing.

Detailed information on how to use sorting can be found in our Help Section by following this link.

I hope you find this information helpful. If you have any other questions, do not hesitate to contact us.

Best wishes,
Stefan
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
mark leavesley
Top achievements
Rank 1
answered on 13 Sep 2010, 03:45 PM
Hello,

This is not, after 1/2 hour of experimentation, compatible with 'AllowRowReorder'. This should be explicit in the documentation as I don't see why the two cannot be used at the same time. If manual row re-ordering has been done and a column is sorted, just remove the manual row re-order?


Regards,
Mark Leavesley
0
Stefan
Telerik team
answered on 16 Sep 2010, 04:27 PM
Hello mark leavesley,

Thank you for your question.

Please note that row reordering is possible only when RadGridView is in unbound mode. You can enable it and reorder your rows by a mouse drag operation. Then you can sort the whole grid and the rows will be sorted. If you decide to remove the sort descriptor from the sort descriptors collection, all the rows will be returned to the position that they were before the sorting operation. This is the behavior of RadGridView.

I hope you find this information helpful. If there is anything else I can assist you with, do not hesitate to contact me.
 
Regards,
Stefan
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
Tags
GridView
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Stefan
Telerik team
mark leavesley
Top achievements
Rank 1
Share this question
or