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.


Thread ID:





6075 Jul 30,2003 07:47 AM Jul 30,2003 06:17 PM Windows Forms 4
Tags: GridControl
Asked On July 30, 2003 07:47 AM

in one Grid, Some column need GridMergeCellsMode.MergeRowsInColumn Some Column need GridMergeCellsMode.MergeColumnsInRow How can I do? Code now is(Only can choose one GridMergeCellsMode?): GridStyleInfo columnHeaderStyle = gridDataBoundGridMWV.Model.BaseStylesMap["Column Header"].StyleInfo; columnHeaderStyle.MergeCell = GridMergeCellDirection.Both; gridDataBoundGridMWV.Model.Options.MergeCellsMode = GridMergeCellsMode.OnDemandCalculation|GridMergeCellsMode.MergeRowsInColumn; gridDataBoundGridMWV.Model.Options.SmoothControlResize = false;

Administrator [Syncfusion]
Replied On July 30, 2003 08:17 AM

Are you trying to just merge the headers, or do you want to merge cells in the body of the grid. The code you showed only looked at the column headers an dnot the body of the grid. Doing the rows in the body of a GridDataBoundGrid will require some work as there are now 'row properties' stored in a griddataboundgrid. Instead, you would have to provide these styles dynamically in Model.QueryCellInfo. Alternatively, you could try setting the who tablestyle using grid.TableStyle to see if that will merge the rows as you need it. To set the merging for a column, you would set the style in the grid.Binder.InternalColumns[col].StyleInfo property. (Or, in the grid.GridBoundColumns[col].StyleInfo if you have explicitly added the GridBoundColumns).

Replied On July 30, 2003 08:31 AM

you mean gridDataBoundGridMWV.Binder.InternalColumns[0].StyleInfo=GridMergeCellDirection.RowsInColumn; gridDataBoundGridMWV.Binder.InternalColumns[1].StyleInfo=GridMergeCellDirection.ColumnsInRow; then...?

Administrator [Syncfusion]
Replied On July 30, 2003 10:45 AM

Attached is a sample.

Replied On July 30, 2003 06:17 PM

Clay, Thanks!!!!!


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.