Change row height

5 posts, 0 answers
  1. Gabor Borbely
    Gabor Borbely avatar
    2 posts
    Member since:
    May 2009

    Posted 11 Aug 2009 Link to this post

    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
  2. Missing user
    Missing user avatar

    Posted 11 Aug 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Gabor Borbely
    Gabor Borbely avatar
    2 posts
    Member since:
    May 2009

    Posted 11 Aug 2009 Link to this post

    Hi.

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

    Greetz
  5. kaliprasad
    kaliprasad avatar
    1 posts
    Member since:
    Apr 2016

    Posted 14 Apr Link to this post

    Hi,

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

     

    Thanks

  6. Yoan
    Admin
    Yoan avatar
    1069 posts

    Posted 15 Apr Link to this post

    Hi,

    Please note that if you are using our NoXAML dlls, 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.
Back to Top
UI for WPF is Visual Studio 2017 Ready