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

[Solved] GridView row height

1 Answer 186 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.
Pablo
Top achievements
Rank 1
Pablo asked on 18 May 2009, 07:45 AM
Hello,

I would like to know if there is any known issue about reducing the height of the rows in the gridview control for silverlight. I have read the posts and I applied the code proposed by telerik to change the height of the gridview row. It works ok to increase the height but not to reduce it.

Could you please confirm if there is any problem with this issue or provide an easy xaml to reduce the height of the gridview to 10.

Thank you very much for you support,

Pablo

1 Answer, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 18 May 2009, 09:00 AM
Hi Pablo,

By default GridViewRow has a MixHeight set to 24, which restricts the minimum height or all rows. To reduce the height to 10 you should set both the Height and the MixHeight properties. Your style should look something like that:

<Style x:Key="CustomStyle" TargetType="grid:GridViewRow">  
    <Setter Property="Height" Value="10"/>  
    <Setter Property="MinHeight" Value="10"/>  
</Style> 


Best wishes,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Pablo
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or