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

Change row height

4 Answers 422 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gabor Borbely
Top achievements
Rank 1
Gabor Borbely asked on 11 Aug 2009, 12:31 PM
Hi.

I searched for it before but without success. Can anyone tell me how I can change the height of the RadGridViewRows?
Thank you for any help.

Greetz

4 Answers, 1 is accepted

Sort by
0
Missing User
answered on 11 Aug 2009, 12:42 PM
Hello Gabor Borbely,

To modify the height of the grid rows you will need to create a style for the rows and specify their height in a setter. The XAML below will set the MinHeight of the row to 15:

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    .......  
 
<Style TargetType="telerik:GridViewRow" x:Key="RowStyle">    
    <Setter Property="MinHeight" Value="15"/>    
</Style>   
     ......    
   
<telerik:RadGridView x:Name="RadGridView1" RowStyle="{StaticResource RowStyle}" />  

Let me now if you need any further assistance.

Sincerely yours,
Anastasia
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.
0
Gabor Borbely
Top achievements
Rank 1
answered on 11 Aug 2009, 01:42 PM
Hi.

That's all I wanted to know and it's working as it should.
Thank you very much!

Greetz
0
kaliprasad
Top achievements
Rank 1
answered on 14 Apr 2016, 03:28 PM

Hi,

after applying this style, the rows are not showing. In filter the data is present.

 

Thanks

0
Yoan
Telerik team
answered on 15 Apr 2016, 10:34 AM
Hi,

Please note that if you are using our NoXAML , you need to base your style using the BasedOn attribute:
<Style TargetType="telerik:GridViewRow" x:Key="RowStyle" BasedOn="{StaticResource :GridViewRowStyle}">   
    <Setter Property="MinHeight" Value="15"/>   
</Style>


Regards,
Yoan
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Gabor Borbely
Top achievements
Rank 1
Answers by
Missing User
Gabor Borbely
Top achievements
Rank 1
kaliprasad
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or