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

[Solved] OrderBy DisplayIndex

1 Answer 144 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry
Top achievements
Rank 1
Terry asked on 11 Mar 2010, 10:09 PM
Hi:

I'm trying to remember the displayed column order in a cookie.  In order for this to work efficiently, I want the columns stored in the cookie in DisplayIndex order, but I can't get the OrderBy to work:

foreach ( GridViewColumn col in Report_Grid.Columns.OrderBy( x => x.DisplayIndex ) )   
 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Mar 2010, 08:13 AM
Hi Terry,

Please check this demo to know more how to save/restore columns order:
http://demos.telerik.com/silverlight/#GridView/SaveLoadSettings

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