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

[Solved] How to set RadGridColumn width

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nachiappan
Top achievements
Rank 1
Nachiappan asked on 21 Jun 2008, 10:30 AM
Respected Sir,

                    How to set fixed RadGridColumn size in design time?


Regards,
P.Nachiappan.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Jun 2008, 03:17 PM
Hi Nachiappan,

You can easily achieve this using the following code
RadGrid1.Columns[0].ItemStyle.Width = Unit.Pixel(40); 
or
RadGrid1.MasterTableView.GetColumn("Model").ItemStyle.Width = Unit.Pixel(50); 

Greetings,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Shinu
Top achievements
Rank 2
answered on 24 Jun 2008, 05:22 AM
Hi Nachiappan,

Try setting the Width for the GridColumn in the aspx as shown  below.

ASPX:
<telerik:GridBoundColumn UniqueName="ProductName" HeaderText="ProductName" DataField="ProductName" > 
        <ItemStyle  Width="50px"/> 
        <HeaderStyle  Width="50px" /> 
       </telerik:GridBoundColumn> 
        

Thanks
Shinu.

Tags
Grid
Asked by
Nachiappan
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or