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

Problems with sorting on grid

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
plusHR
Top achievements
Rank 1
plusHR asked on 06 Sep 2011, 09:56 AM
Hi. I have a grid with a GridViewComboBoxColumn this is then bound to a table which has a "guid" and "title" field. The selected value path is the "guid" and the display member is the "title". However when I set-up a column sort descriptor in code-behind the sorting is done on the "guid" and not the "title". Could you advise how I can get the column to sort based on what is being displayed.

Thanks
Paul

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 06 Sep 2011, 02:54 PM
Hello Paul,

You can use the SortMemberPath property on the column to specify the property (title in your case) that will be used for sorting.

Is this working for you?

All the best,
Didie
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 >>

Tags
GridView
Asked by
plusHR
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or