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

[Solved] Minimize grid column-width

1 Answer 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 05 Jun 2009, 01:40 PM
When I have a RadGrid with a width of 100% but only very little text displayed in the columns, then there is a lot of whitespace between columns.

Is it possible to somehow tweak the grid to display columns only as wide as necessary (to display their content) and to have some sort of "filler-column" which takes up the remaining horizontal space (the grid should still be 100% wide).

Thanks for your help.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Jun 2009, 07:06 AM
Hi Martin,

I would suggest you to set Table-Layout of the Grid to Fixed and set the HeaderStyle-Width of the Grid column to a desired value depending on the content.

Shinu


Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or