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.

Joining multiples cells in a row into one cell

Thread ID:

Created:

Updated:

Platform:

Replies:

18327 Aug 27,2004 12:13 PM Aug 28,2004 06:56 AM Windows Forms 4
loading
Tags: GridControl
Steven Hawkes
Asked On August 27, 2004 12:13 PM

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

Administrator [Syncfusion]
Replied On August 27, 2004 12:43 PM

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

Steven Hawkes
Replied On August 28, 2004 02: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)); >

Administrator [Syncfusion]
Replied On August 28, 2004 04: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.

Administrator [Syncfusion]
Replied On August 28, 2004 06: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.

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.

;