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

Sort a grid by the DisplayMemberPath value of a GridViewComboBoxColumn

1 Answer 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 15 Sep 2010, 10:29 PM
Question is simple enough.. is there a way that doesn't suck.. by which I can sort the grid by the displayed value in a ComboBox.  Let's say the backing data is really and int that maps to a string description.  Can I sort the grid on the description that is the DisplayValueMemberPath?

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 16 Sep 2010, 09:06 AM
Hello Jason,

Unfortunately, GridViewComboBoxColumn does not support sorting according to the DisplayMemberPath. Its default way of sorting is according to the property set in the DataMemberBinding. If you want to achieve the look of a column sorted by the displayed value, you may try to match the IDs to the displayed values.
 

All the best,
Maya
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
Jason
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or