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.

Merged grouped column cells with same values

Thread ID:

Created:

Updated:

Platform:

Replies:

99646 Jun 2,2011 12:59 AM Jun 6,2011 05:19 AM Windows Forms 1
loading
Tags: Grouping
Nihar Ranjan Dalai
Asked On June 2, 2011 12:59 AM

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

Jisha Joy [Syncfusion]
Replied On June 6, 2011 05:19 AM

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


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.

;