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

[Solved] Resize Columns in GridViewDataControl

4 Answers 119 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
marcos
Top achievements
Rank 1
marcos asked on 15 Feb 2011, 09:40 AM
Assume there is a  GridViewDataControl with auto width and some columns (e.g. 5).
When I resize the window, I wish that the columns content resize, but actually the rows 4 and 5 are cut off...

In Winforms I always used the option AutoSizeColumnsMode = Fill.

Is there an equivalent in Silverlight???

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 15 Feb 2011, 10:15 AM
Hello marcos,

You may set the ColumnWidth property of the grid to "*":

<telerik:RadGridView Name="playersGrid"
    ColumnWidth="*"                                                  ItemsSource="{Binding Players}"
    AutoGenerateColumns="False">
 


Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
marcos
Top achievements
Rank 1
answered on 15 Feb 2011, 11:04 AM
Unfortunately it doesn't work!

Could be the problem that i'm using the grid inside RadDocking?
That i'm using GridViewDataColumn.Header.TextWrapping (some columns only)?
That there is a time lag between parsing/building the gridview and receiving the itemsource data (via webservice)?

0
Maya
Telerik team
answered on 15 Feb 2011, 06:47 PM
Hi marcos,

I have tried to reproduce the issue you reported, but I was not able to. I am sending you the sample project I used for testing it. Please take a look at it and let me know in case of any misunderstandings.
 

Kind regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
marcos
Top achievements
Rank 1
answered on 16 Feb 2011, 02:36 PM
Hi Maya,

although i don't know yet what exactly was the problem I thank you for your example. I had to draw/write the entire xaml new - but now everything works like expected.

Thanks,
m.
Tags
GridView
Asked by
marcos
Top achievements
Rank 1
Answers by
Maya
Telerik team
marcos
Top achievements
Rank 1
Share this question
or