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

how to Reorder column based on certain value?

1 Answer 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tobin
Top achievements
Rank 1
Tobin asked on 03 Nov 2008, 10:05 AM
Hi Telerik,

how to reorder the column based on certain values?
For example:

                data1  data2  data3 data4
data a         1        10        20     30
data b        20       30        50     10
data c         4         1            2       3
total           25        41        72    33

become     

                data3  data2  data4 data1
data a        20        10       30      1
data b        50       30        10     20
data c         2         1            3      4
total           72       41         33     25


Thanks.

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 04 Nov 2008, 08:51 AM
Hello Tobin,

Thank you for your question.

Please see the code below:

this.radGridView1.Columns.Move(2, 1); 
 
It moves the third column to the second place.

Do not hesitate to write me back if you have further questions.

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Tobin
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or