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 The column Header for the Sample Employee

Hi ,

I have used the EmployeeView Sample from the GridGrouping Samples of the Syncfusion Sample Browser.version 4.3.0.30

I want to merge the column headers for the splited Column and display header as a single header .
I have attached the requirement alongwith .

Pls,respond with the sample code.

Thanks and Regards,
Aditi Pisal



Sample116.zip

3 Replies

AD Administrator Syncfusion Team February 27, 2007 06:26 PM UTC

Hi Aditi,

Use the TableModel.CoveredRanges property of the grid to set the covered ranges in a grid. Please try the attached sample and let me know if you are looking something different.

[C#]
this.gridGroupingControl1.TableModel.CoveredRanges.Add(GridRangeInfo.Cells(2,3,3,3));
this.gridGroupingControl1.TableDescriptor.Columns["FirstName"].HeaderText = "Name";

Sample: EmployeeViewCS.zip

Best regards,
Haneef


AP Aditi Pisal February 28, 2007 07:55 AM UTC

Hi Haneef,
I was able to merge the Column headers.Thanks for the sample.

I now want to add another label above some of the selected columns.

I am using GridGrouping Grid of Syncfusion version 4.4.0.55
Pls, reply with sample code

Merge Columns .zip


AD Administrator Syncfusion Team February 28, 2007 08:28 PM UTC

Hi Aditi,

Refer this thread. You may try to have an extra row header set up through the custom section above the column header. See if that helps.

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon