Column merging in a row

Can you merge columns, or span columns in a row?

Thanks.

5 Replies

CB Clay Burch Syncfusion Team March 16, 2010 04:43 PM UTC

In a GridControl, merging cells is referred to a coveredcells. So, you can have code such as

gridControl1.CoveredCells.Add(GridRangeInfo.Cells(2, 1, 2, 20));

to cover specific cells.

In a GridGroupingControl, you can use ColumnSets to cover cells in a particular pattern. Take a look at this sample

C:\Users\yourname\AppData\Local\syncfusion\EssentialStudio\8.1.0.30\Windows\Grid.Grouping.Windows\Samples\2.0\Grouping Grid Layout\Employee View Demo

that we ship as part of the sample browser. It shows how to use columnsets as well as how to show a preview row (a row under a record row where you can place other information like a record footnote).


AD Administrator Syncfusion Team March 17, 2010 06:58 PM UTC

Excelent thank you very much. :-) really great grid.


AD Administrator Syncfusion Team March 17, 2010 08:01 PM UTC

I get an error using covered cells.

GridControl1.CoveredCells

'CoveredCells' is not a member of 'Syncfusion.Windows.Forms.Grid.GridControl'


AD Administrator Syncfusion Team March 17, 2010 08:18 PM UTC

Correct code for Grid Control for folks with same issue.

GridControl1.CoveredRanges.Add(GridRangeInfo.Cells(2,1,2,20))


JJ Jisha Joy Syncfusion Team March 22, 2010 07:27 AM UTC

Hi George,

Thank you for your update.

Regards,
Jisha

Loader.
Up arrow icon