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

GridView multiple rows format

1 Answer 16 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lily
Top achievements
Rank 1
Veteran
Lily asked on 28 Aug 2020, 03:07 PM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Sep 2020, 08:59 AM

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/.

Tags
GridView
Asked by
Lily
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or