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

Positioning AutoGenerated Edit/Delete Columns

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 02 Mar 2009, 06:55 PM
How can I make the AutoGenerated Edit and Delete columns display as column[0] annd column[1] ?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Mar 2009, 04:39 AM
Hello Reid,

Try out the Swapcolumns() method to reorder the columns as your need.

CS:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    RadGrid1.MasterTableView.SwapColumns("AutoGeneratedEditColumn""ColumnUniqueName"); //ColumnUniqueName of the first column 
    RadGrid1.MasterTableView.SwapColumns("AutoGeneratedDeleteColumn""ColumnUniqueName"); //ColumnUniqueName of the second column 

Thanks,
Shinu.
0
Reid
Top achievements
Rank 2
answered on 03 Mar 2009, 03:00 PM
Thank you for this information
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Reid
Top achievements
Rank 2
Share this question
or