Need to merge the radGrid cell(column)

2 posts, 0 answers
  1. n/a
    n/a avatar
    72 posts
    Member since:
    Jan 2018

    Posted 22 Apr Link to this post

    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

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

    Posted 22 Apr Link to this post

    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.
Back to Top