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

Positioning the AutogenerateDelete Column.

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sushanth
Top achievements
Rank 1
Sushanth asked on 22 Aug 2008, 04:30 AM

Hai,

I want to place the AutoGenerateDelete column to the last column of the grid even though my columns of the grid are autogenerate. 

I gave true for the AutoGenerateColumn and the AutoGenerateDelete column, but the AutoGenerateDelete column is come first rather than the AutoGenerateColumns.
 
Is it possible for me to position the AutoGenerateDelete column next to the AutoGeneratColumns, ie AutoGenerateDelete column should come at the last column of the grid.

Thanks and Regards,
Sushanth Mathew

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Aug 2008, 07:14 AM
Hi Sushanth,

Try swapping the columns using their column UniqueName so that you can display the delete column at the required position

CS:
protected void RadGrid2_PreRender(object sender, EventArgs e) 
    { 
        RadGrid2.MasterTableView.SwapColumns("AutoGeneratedDeleteColumn", "Division");  
     
    } 


Shinu.
Tags
Grid
Asked by
Sushanth
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or