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

Merging of rows.

Thread ID:

Created:

Updated:

Platform:

Replies:

81187 May 15,2009 05:45 AM May 18,2009 01:37 AM Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 15, 2009 05:45 AM

How to merge header rows of a grid.

Jisha Joy [Syncfusion]
Replied On May 18, 2009 01:37 AM

Hi Jayaseelan,

You can use the CoveredRanges property to merge cells in Gridcontrol. Please see the code:

this.gridControl1.Model.Rows.HeaderCount = 1;
this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(0, 1, 1, 4));
this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(0, 5, 1, 8));
this.gridControl1[0, 1].CellValue = "Group1";
this.gridControl1[0, 5].CellValue = "Group2";

Please let me know if this helps.

Regards,
Jisha

CONFIRMATION

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.

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.

;