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

Column Original Display Index

2 Answers 231 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Veteran
Anthony asked on 04 Feb 2015, 11:07 PM
Hi,

I am defining the columns for a GridView in XAML and allow the users to reorder the columns. I added a context menu where the user can select to arrange the columns back in their original XAML order.

I cannot see any property that has the original display index so I was going to store this in the Tag property. I just wanted to check first if there was a better way to do this?

Thanks
Anthony

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 05 Feb 2015, 02:21 PM
Hi Anthony,

There is indeed not such a property to hold the original display index. You can either use the approach you have in mind or rely on the original order of columns in RadGridView.Columns collection.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Anthony
Top achievements
Rank 1
Veteran
answered on 05 Feb 2015, 09:00 PM
Hi,

Thanks, using the order of the RadGridView.Columns collection sounds like the better solution.

Regards
Anthony
Tags
GridView
Asked by
Anthony
Top achievements
Rank 1
Veteran
Answers by
Dimitrina
Telerik team
Anthony
Top achievements
Rank 1
Veteran
Share this question
or