Setting Row Height

5 posts, 0 answers
  1. Michael
    Michael avatar
    18 posts
    Member since:
    Feb 2009

    Posted 12 May 2009 Link to this post



    Sub RadGridView_SessionData_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles RadGridView_SessionData.RowFormatting 



    e.RowElement.RowInfo.Height = 200 








    This is not working i want to just set the row height for the grid! what am i doing wrong?

  2. Jack
    Jack avatar
    2333 posts

    Posted 13 May 2009 Link to this post

    Hi Michael,

    Thank you for contacting us.

    Unless you have set the AutoSizeRows property to true this code should work. If this is not the case, please open a support ticket and send us your application. We will investigate the situation and will try to locate any potential issue.

    There is also another way to change the row height. You can set the RowHeight property of the GridElement. Please check the sample below:

    RadGridView1.GridElement.RowHeight = 200 

    I hope this helps. If you need further assistance, I will be glad to help.

    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. Rich
    Rich avatar
    1 posts
    Member since:
    Jun 2009

    Posted 01 Mar 2013 Link to this post

    Can you set different heights for rows in a single grid?
  4. Jack
    Jack avatar
    2333 posts

    Posted 05 Mar 2013 Link to this post

    Hello Rich,

    Yes, you can specify different row heights. In order to do this, you should set the Height property for the row. Here is a sample:
    this.radGridView1.ChildRows[3].Height = 50;

    Should you have other questions, do not hesitate to ask.
    All the best,
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

    Interested, but can’t attend? Register anyway and we’ll send you the recording.
  5. Manish
    Manish avatar
    1 posts
    Member since:
    Mar 2013

    Posted 11 Jun 2013 Link to this post

    You can use the RowHeight property of the RadGridView like-

    <telerik:RadGridView AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding TimeSlots}" RowIndicatorVisibility="Collapsed" RowHeight="18">

    Hope this may help you. 

Back to Top