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

Sort on different bound property

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lee_bnsf
Top achievements
Rank 1
lee_bnsf asked on 03 Aug 2010, 09:15 PM
Ok, I'm working through this sort thing.  I'm binding a GridView to an Observablecollection.  The two properties in question are MemoryUsage (int64) and MemoryUsageFormatted (String).  I need to display MemoryUsageFormatted, but sort on MemoryUsage.  I've tried using a PagedCollectionView as the itemsource and working with it's SortDescriptions collection in the Sorting event of the grid, but that didn't work.

Any help appreciated,

Thanks,
Lee

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Aug 2010, 06:38 AM
Hi Lee,

 You can set SortMemberPath for this column if you want to sort using different from DataMemberBinding property. 

Regards,
Vlad
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
lee_bnsf
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or