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

Width of Grid Column

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 15 Dec 2008, 09:55 AM
Hi,

I tried to set the width of the column to make it fixed. But it didn't seem to work. Below was the code which I used.

<telerik:GridBoundColumn ItemStyle-Width="150" DataField="ApprovalStatus" HeaderText="Approval Status" AllowFiltering="false" SortExpression="ApprovalStatus" HeaderStyle-HorizontalAlign="left"></telerik:GridBoundColumn>

I had also tried to change the width to percentage, but to no avail.

Did I miss out anything?

Thanks & Regards,

Erwin


                  

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Dec 2008, 10:35 AM
Hello Erwin,

Try setting the width of the column by setting its HeaderStyle property as shown in the code below:

aspx:
<telerik:GridBoundColumn ItemStyle-Width="150" HeaderStyle-Width="150" DataField="Category" HeaderText="Approval Status" AllowFiltering="false" SortExpression="Category" HeaderStyle-HorizontalAlign="left"></telerik:GridBoundColumn> 
         

Thanks
Princy.


Tags
Grid
Asked by
Erwin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or