Merging of rows.

How to merge header rows of a grid.

1 Reply

JJ Jisha Joy Syncfusion Team May 18, 2009 05:37 AM UTC

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

Loader.
Up arrow icon