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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Merge column header rows (with a grouping grid)

Thread ID:





19212 Sep 21,2004 11:21 AM UTC Sep 21,2004 12:52 PM UTC WinForms 1
Tags: GridControl
Olivier Mayo
Asked On September 21, 2004 11:21 AM UTC

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

Administrator [Syncfusion]
Replied On September 21, 2004 12:52 PM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon