We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Merge column header rows (with a grouping grid)

Hi, I have a grouping grid and one of its column behaves as the "FirstName" and "LastName" columns of the EmployeeView sample (except that my row is splitted in three rows instead of two). However, I would like to have only one header row, not three (kind of merging them together). Is there any way to do so? Thank you. Here is the way I create this column : Private Sub AddThreeRowsColumn(ByVal ColumnSetName As String, ByVal sName1 As String, ByVal sName2 As String, ByVal sName3 As String, ByVal width As Int32) Dim gridColumnSetDescr As GridColumnSetDescriptor Dim gcdPrevAvancCoutant As GridColumnDescriptor Dim gcdBudCourant As GridColumnDescriptor Dim gcdAvancReel As GridColumnDescriptor gcdPrevAvancCoutant = New GridColumnDescriptor(sName1, sName1, "header" & sName1, True, width) gcdBudCourant = New GridColumnDescriptor(sName2, sName2, "header" & sName2, True, width) gcdAvancReel = New GridColumnDescriptor(sName3, sName3, "header" & sName3, True, width) gridColumnSetDescr = New GridColumnSetDescriptor("ColumnSet" & ColumnSetName) gridColumnSetDescr.ColumnSpans.AddRange(New GridColumnSpanDescriptor() {New GridColumnSpanDescriptor(sName1, "R0C0"), New GridColumnSpanDescriptor(sName2, "R1C0"), New GridColumnSpanDescriptor(sName3, "R2C0")}) ggcBudget.TableDescriptor.ColumnSets.AddRange(New GridColumnSetDescriptor() {gridColumnSetDescr}) End Sub

1 Reply

AD Administrator Syncfusion Team September 21, 2004 08:52 AM

H Olivier, check out that thread. You can handle QueryCoveredRange, check if ColumnHeaders are queried and then override the grids default behavior and cover these cells so that they become one large cell. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=15054 Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon