The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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;
ADAdministrator Syncfusion Team July 30, 2003 12:17 PM UTC
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).
CRCradleJuly 30, 2003 12:31 PM UTC
you mean gridDataBoundGridMWV.Binder.InternalColumns[0].StyleInfo=GridMergeCellDirection.RowsInColumn;
gridDataBoundGridMWV.Binder.InternalColumns[1].StyleInfo=GridMergeCellDirection.ColumnsInRow;
then...?
ADAdministrator Syncfusion Team July 30, 2003 02:45 PM UTC