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
close icon

Merged grouped column cells with same values

Hi,

Is it possible to do something like what is done in the attached snapshot using any of the syncfusion grid controls?

I need to have the grouped cells with same values to be merged into one cell.

Hoping for your help,

Thanks and regards,
Nihar.



MergedCells_76d482e5.zip

1 Reply

JJ Jisha Joy Syncfusion Team June 6, 2011 09:19 AM UTC

Hi Nihar,

The merge cells can be done by handling MergeCellsMode and MergeCell direction in GridControl as shown below:

this.gridControl1.Model.Options.MergeCellsMode = GridMergeCellsMode.OnDemandCalculation | GridMergeCellsMode.MergeRowsInColumn|GridMergeCellsMode.MergeColumnsInRow;
this.gridControl1.ColStyles[1].MergeCell = GridMergeCellDirection.RowsInColumn;
this.gridControl1.RowStyles[6].MergeCell = GridMergeCellDirection.ColumnsInRow;


Refer the sample from below link that demonstrate the behavior of MergeCell.
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/I60819/GridControl.zip

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon