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

[Solved] Spacing for items in Grid

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Himanshu Thakur
Top achievements
Rank 1
Himanshu Thakur asked on 10 Dec 2009, 05:42 AM
Hi,

how would I reduce the spacing for the columns in Grid, as it takes equal space for items with description and a single character.

How to squeeze the space accordign to the values that would be rendered into the grid.

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Dec 2009, 06:34 AM
Hello Himanshu,

The TableLayout property for a GridTableView, when set to Auto, will set the width of columns by the widest unbreakable text content in the column cells. So try setting the TableLayout property of the MasterTableView to Auto and see if it helps. Here's an example:
aspx:
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" AutoGenerateColumns="false" runat="server">        
    <MasterTableView TableLayout="Auto">                 
        .....

Thanks
Princy.
Tags
Grid
Asked by
Himanshu Thakur
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or