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

Adjust Grid to content

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brygom
Top achievements
Rank 1
Brygom asked on 21 Jul 2009, 11:01 PM
Hi! I have a problem. I'm using the RadGrid Control with Auto-Generate Columns at runtime, but i need adjust the every column to width the field ,How can I adjust the columns automatically?
Thanks for your help!

Bryan..



2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 Jul 2009, 04:40 AM
Hello Bryan,

Try setting the TableLayout property property of the GridTableView object to Auto and see if it helps in your case.
aspx:
<telerik:RadGrid ID="RadGrid1" DataSourceID="Sqldatasource1" 
                runat="server"
                <MasterTableView TableLayout="Auto">                  

Thanks
Princy.
0
Brygom
Top achievements
Rank 1
answered on 23 Jul 2009, 03:19 AM
Thank your for the reply! it's nice....

Bryan..

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