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

[Solved] Columns in same order as view

1 Answer 130 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, 06:30 PM
Hi:

I am binding a grid to a series of views.  These views are frequently changed by the users.

The bound grid has the column names in alphabetical order, not the order in which they are defined in the view.  Is there any way to make the columns appear in the same order as the view?  It would be much too tedious to manually assigne the columns (40+ in each view), each time there is a change.

I am using RIA services to get the data.

Example:
create view vw as
select ClaimDate, ClaimNumber, AdmittingDate from table

I want the columns appear in this order, but they appear in alphabetical order:
AdmittingDate, ClaimDate, ClaimNumber

Again, there are many, many columns that change frequently.  We can't ask a programmer to tediously assign the columns each time there is a change.

Thanks,

Terry

1 Answer, 1 is accepted

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

The grid will not order columns in any way. You can check for example this demo:
http://demos.telerik.com/silverlight/#GridView/DataSources

I believe that this issue is directly related to RIA services.

Greetings,
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