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

column width changing server-side

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
EJ
Top achievements
Rank 1
EJ asked on 14 Jun 2010, 01:43 PM
i need to conditionally change a radgrid column's width on the server side - I cannot find the property for this and I need to do this server side

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 14 Jun 2010, 01:55 PM
Hello,

You can easily achieve this by seting the HeaderStyle - Width property of column.

CS:
 
RadGrid1.MasterTableView.GetColumn("EmployeeName").HeaderStyle.Width = Unit.Pixel(300); 


Regards,
Princy.
0
EJ
Top achievements
Rank 1
answered on 16 Jun 2010, 03:39 PM
thanks!
Tags
Grid
Asked by
EJ
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
EJ
Top achievements
Rank 1
Share this question
or