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

Template Column with Autogenerate Columns

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashwin Deshpande
Top achievements
Rank 1
Ashwin Deshpande asked on 24 Mar 2010, 07:23 AM
i Have a case where the First two Columns of radgrid are fixed and are template columns.i need those columns for itemdatabound processing.
Also i have set the autogeneratecolumns to true as number of columns are not fixed.
When the grid page first loads i am unable to see the Fixed Template columns.when i scroll the grid horizontally to end .these fixed columns appear on the right side.

Please help me on this  as i have to show the template columns from the load itself.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Mar 2010, 09:10 AM

Hello Ashwin,

Try setting the OrderIndex property of the columns, in order to reorder the columns as per requirement. Set the OrderIndex for each columns from code behind (in PreRender event) and call Rebind() method of grid.

I hope the documentation will be helpful to you.

Reordering columns

[Note: When using the OrderIndex property to reorder columns, make sure that you assign values so that no two columns have the same index and no index is omitted.]

Regards,

Shinu.

Tags
Grid
Asked by
Ashwin Deshpande
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or