WPF Sorting ComboBoxColumn based on DisplayMemberPath?

1 Answer 194 Views
ComboBox GridView
Jake
Top achievements
Rank 1
Jake asked on 21 Sep 2023, 04:37 PM
Was wondering if this it is possible to sort based on the value displayed by displaymemberpath on my combobox column. It is populated by a Linq list where I have an ID and then usually a string that is displayed in the column but I only can get it to sort based on the underlying property aka the number and not the string value. Looking for any advice or ideas!

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 25 Sep 2023, 10:10 AM

Hello Jake,

You can use the SortMemberPath property for this. Detailed information is available here: WPF DataGrid - Custom Sorting.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ComboBox GridView
Asked by
Jake
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or