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

Set a fix (dynamic) width to a GridView with auto generated columns

2 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 05 Jun 2013, 06:21 AM
Hi folks,
I have a RadGridView with auto generated columns. The width of the grid view should be indepenend of the amount of the columns. The width should be the *take all available space. For instance I'm looking for a workaround for the missing <RadGridView Width="*" />.

Thanks a lot!

- Tobi

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 05 Jun 2013, 06:33 AM
Hi,

Maybe you should place RadGridView inside a Grid control and then set the ColumnDefinition it belongs to to be with Width="*". 

More about the Grid control, you can learn here.

Regards,
Rossen Hristov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tobias
Top achievements
Rank 1
answered on 05 Jun 2013, 06:58 AM
Hi,
you are right. I just set the parent Grid Column to Width="*" and it works.
Thanks for your fast reply!

- Tobi
Tags
GridView
Asked by
Tobias
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Tobias
Top achievements
Rank 1
Share this question
or