Joining multiples cells in a row into one cell

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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));

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));
>

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.

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.