GridView multiple rows format

2 posts, 0 answers
  1. Lily
    Lily avatar
    26 posts
    Member since:
    Feb 2019

    Posted 28 Aug Link to this post

    Hi,

     

    I have a gridview with multiple (currently 4) rows and multiple groups (7) that I used the designer to do.  Is there any way to have where some of the group with only 2 columns, can their height be spread equally along the height of the 4 rows? Right now, it's like 1,3.  I would like 2, 2.. 

     

    In the pic attached,  the last group has 2 columns: p/s and process... p/s is only taking up 1 row, and process taking up 3 rows.  I want that to be 2 rows and 2 rows.  Similar for the width1,2,3,  since they are 2 rows of text, I would like it to be taking up 2 rows space instead of the just row 1.

     

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3952 posts

    Posted 01 Sep Link to this post

    Hello, Lily,

    According to the provided information and sample screenshot, it seems that you want the "P/S" column to be 2 rows high. 

    I believe that HtmlViewDefinition  would be appropriate for building the desired layout. The HtmlViewDefinition adds row and column spanning feature like in HTML table. This features enables spanning cells across more than one column or row. To specify a column/row spanning, set the ColSpan/RowSpan property of the CellDefinition. Additional information is available in the following help article: https://docs.telerik.com/devtools/winforms/controls/gridview/view-definitions/html-view 

    You can also have a look at the Demo application >> GridView >> Columns >> Grid Views example which is quite useful on this topic as well.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top