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

Auto size grid width based on columns

2 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lorne
Top achievements
Rank 1
Lorne asked on 18 May 2011, 12:09 AM
I am new to telerik controls.  I am looking for a xaml property in my radGridView so that when I have 3 columns of data that are at max 6 characters each, the grid does not fill the entire screen but it shrinks to fit the combined width of the individual columns.
right now I have 3 columns with data, and one big fourth column which is all empty as it stretches to fit the container.  How do I get it to not stretch and just display the 3 columns that will take up about 1/3 of the width of the container.  Please Note: I don't want to enter a number for the width size.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 May 2011, 07:26 AM
Hi,

 Have you tried to set HorizontalAlignment="Left" for the grid?

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lorne
Top achievements
Rank 1
answered on 18 May 2011, 06:22 PM
that did it. Thanks!
Tags
GridView
Asked by
Lorne
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Lorne
Top achievements
Rank 1
Share this question
or