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

Grid Column Reordering programmatically When AutoGeneratedColumn = 'false'

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chethan Rajashekaraih
Top achievements
Rank 1
Chethan Rajashekaraih asked on 18 May 2012, 12:54 PM
Hi 
   I have used Rad Grid where all the Column are set in ASPX page and the data for the grid is set from DataSource from the Server Side .After setting the data source i need to re arrange the column at different position which will be distinct compare to sequence which is set in the ASPX page .

ASPX page sequence is the default one but some time the sequence of the Column should be changed Programmatically after setting the DataSource 



Thanks in advance ,
Chethan Rajashekaraiah

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 21 May 2012, 05:45 PM
Hi Chethan,

Please refer to the other forum post opened by you for the same question:
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-reordering-column-problematically-when-autogeneratedcolumn-false.aspx

Additionally, after enabling reordering columns, you could swap them programmatically:
RadGrid1.MasterTableView.SwapColumns(2, 4);
RadGrid1.MasterTableView.SwapColumns("Column1", "Column2");

All the best,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Chethan Rajashekaraih
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or