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

How to sort the RadGridView Columns with the displayed value and not the data source values

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Sep 2012, 09:30 AM
Hi,

We have a RadGridView with some custom column implementations, changeing the original value bound to this columns. Now we have the problem, that the default sort mechanism sorts the rows with the original values from the data source, but it should be sorted with the displayed column values. I also can not use the expression sort descriptors, I have no access to the displayed type at compoleing time.

Is there a way to change this behavior?

Thanks for help,
Michael

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 14 Sep 2012, 10:59 AM
Hello,

Sorting is a data operation and is performed by LINQ. Sorting can only be done on data values. You can't sort something which is not data, i.e. is not in the data source of the grid.

All the best,
Ross
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or