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

How to Merge and unmerge a column of a syncfusion Grid.(Urgent)!

Hi,

How to merge and unmerge a single column of a syncfusion grid.

this.grdImportResult.Model.Options.MergeCellsMode = GridMergeCellsMode.SkipHiddencells | GridMergeCellsMode.OnDemandCalculation | GridMergeCellsMode.MergeRowsInColumn;

Our case we are using this functionality but it is applicable to the entire Grid.

I want to deal with only a single column not with the entair Grid.

Thanks In Advance.




2 Replies

RC Rajadurai C Syncfusion Team March 14, 2009 07:26 AM UTC

Hi Santosh,

Thanks for your interest in Syncfusion products.

To deal with merging of cells in a single column, the MergeCell property of column also has to be set. Please try the following code.

this.gridControl1.Model.Options.MergeCellsMode = GridMergeCellsMode.SkipHiddencells | GridMergeCellsMode.OnDemandCalculation | GridMergeCellsMode.MergeRowsInColumn;
this.gridControl1.ColStyles[2].MergeCell = GridMergeCellDirection.RowsInColumn;


Regards,
Rajadurai



AD Administrator Syncfusion Team March 16, 2009 07:17 AM UTC

Hi,

This as helped me a lot.

Thanks once again
for u r quick response.



Loader.
Live Chat Icon For mobile
Up arrow icon