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

RadGrid Columns Width on AutogenerateColumns

2 Answers 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 24 Aug 2011, 11:54 AM
Hello

I create a RadGrid using AutogeneratedColumns, is that possible to set the width of the columns??

How can i do this?

2 Answers, 1 is accepted

Sort by
0
Ricardo
Top achievements
Rank 1
answered on 24 Aug 2011, 12:06 PM
Sorry problem solved with:
protected void RadGrid2_PreRender(object sender, EventArgs e)
{
    GridColumn gridCol = RadGrid2.MasterTableView.GetColumn("UserName");
    gridCol.HeaderStyle.Width = Unit.Pixel(180);
      
}
0
Ricardo
Top achievements
Rank 1
answered on 30 Aug 2011, 10:16 AM
Thread solved, please ignore...
Tags
Grid
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Ricardo
Top achievements
Rank 1
Share this question
or