This is a migrated thread and some comments may be shown as answers.
Need to merge the radGrid cell(column)
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 22 Apr 2020, 11:08 AM

Hi,

    We need to merge the radGrid cell(Wage Category column) with the same name as mentioned in the video link. Code shared for your reference. Please check & help us with it.

Screen Shot link

 

Dim dtArraytemW  as New DataTable()

 Public Sub InitializeDatatable()

dtArraytemW= New DataTable

dtArraytemW.Columns.AddRange(New DataColumn() {New DataColumn("Wage Category", GetType(String)), New DataColumn("Type", GetType(String)),
New DataColumn("# Hours", GetType(String))})
End Sub

dtArraytemW.Rows.Add(0)(0) = "Salary - Office"
dtArraytemW.Rows(0)(1) = "Regular"
dtArraytemW.Rows(0)(2) = 1
dtArraytemW.Rows(0)(3) = 1.5
dtArraytemW.Rows(0)(4) = 2

dtArraytemW.Rows.Add(1)(0) = "Salary - Office"
dtArraytemW.Rows(1)(1) = "Overt0me"
dtArraytemW.Rows(1)(2) = 1
dtArraytemW.Rows(1)(3) = 4.5
dtArraytemW.Rows(1)(4) = 3

dtArraytemW.Rows.Add(2)(0) = "Salary - Office"
dtArraytemW.Rows(2)(1) = "1.7 T0me"
dtArraytemW.Rows(2)(2) = 1
dtArraytemW.Rows(2)(3) = 6.3
dtArraytemW.Rows(2)(4) = 1

rdgvWGrd.DataSource = dtArraytemW

 

Video Link

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Sr.
Telerik team
answered on 22 Apr 2020, 11:47 AM

Hello, Rick,

RadGridView doesn't support cells merging. However, I would recommend you to have a look at the following KB article which demonstrates several approach how to simulate such  behavior: https://www.telerik.com/support/kb/winforms/gridview/details/radgridview-merge-celss 

We already have a similar feature request logged in our  feedback portal. You can track its progress, subscribe for status changes and add your comments on the following link: https://feedback.telerik.com/winforms/1371416-add-radgridview-introduce-merge-cells-rows-functionality

I hope this information helps.

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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Asked by
n/a
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Sr.
Telerik team
Share this question
or