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

Resize columns width for export to excel

1 Answer 314 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marie-Eve
Top achievements
Rank 1
Marie-Eve asked on 23 Mar 2009, 04:47 PM
Hi,

I have a hierarchical grid (3 levels) and when i export my grid to excel, the columns are very large. How can specify the column width for the exportation?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Mar 2009, 05:00 AM
Hi Marie,

You can set the width of the Grid column in the code behind as shown below.

CS:
 
RadGrid1.MasterTableView.GetColumn("columnUniqueName").HeaderStyle.Width = Unit.Pixel(100)  


Thanks
Shinu
Tags
Grid
Asked by
Marie-Eve
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or