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

Joining multiples cells in a row into one cell

Hi, Please can you tell me how to join mainy cells in a row to make a single large cell. What I want to do is to have a title cell that spreads across many cells and for the underlying rows the columns remain intact. e.g. a b c d e f g Row 2 a b c d e f g Row 3 etc a b c d e f g Row 5 a b c d e f g Row 6 With this type of arrangement if possible is it still possible to do a column sort? TIA Steve

4 Replies

AD Administrator Syncfusion Team August 27, 2004 11:43 AM

We call those covered cells. To cover a range of cells, you add the range to the grid. This code will cover cell 2, 3, and 4 on the header row. this.grid.Model.CoveredRanges.Add(GridRangeInfo.Cells(0, 2, 0, 4));


SH Steven Hawkes August 28, 2004 01:08 AM

Can this be on many rows anywhere in a grid or only on the header row? If it can be used on many rows of a single grid, does column sorting still work? Regards STeve >We call those covered cells. To cover a range of cells, you add the range to the grid. This code will cover cell 2, 3, and 4 on the header row. > > this.grid.Model.CoveredRanges.Add(GridRangeInfo.Cells(0, 2, 0, 4)); >


AD Administrator Syncfusion Team August 28, 2004 03:26 AM

You can use covered cells anywhere is a grid. Did you try to do it and it did not work? You can still sort the grid with covered cells, but the default implementation is to leave the physical covered stay fixed. Covered Cells refer to specific locations in teh grid. The value in a covered cell may changed, but if teh covered cell is in the second row before the sort, it will still be in teh second row after the sort. If you want differernt behavior, you woul dneed to implement it yourself.


AD Administrator Syncfusion Team August 28, 2004 05:56 AM

Just wanted t understand fully your response before I give it a go, will try it now. >You can use covered cells anywhere is a grid. Did you try to do it and it did not work? > >You can still sort the grid with covered cells, but the default implementation is to leave the physical covered stay fixed. Covered Cells refer to specific locations in teh grid. The value in a covered cell may changed, but if teh covered cell is in the second row before the sort, it will still be in teh second row after the sort. If you want differernt behavior, you woul dneed to implement it yourself.

Loader.
Live Chat Icon For mobile
Up arrow icon