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

GridView columns not in the correct order

1 Answer 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 18 Dec 2011, 09:59 PM
My problem is simple.

The order in which I build the columns in XAML is not the order that they are being displayed. 

<telerik:GridViewDataColumn DisplayIndex="4" DataMemberBinding="{Binding Area}" Header="Area" />


I have tried using DisplayIndex but it does not seem to work consistantly.

This column is showing up as column 15 not 4 (or 5 if Display Index is zero based).

How can we set column order?

Please help.  This has taken a lot of my time and it seems to be a very simple problem!

Thanks for your help!




1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 19 Dec 2011, 07:01 AM
Hello David,

I have tried to reproduce the issue you reported, but still without any success. Would you take a look at the sample attached and let me know whether you can get the same behavior on it ?
 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or