📚 SAP Business One SDK Help

MergeCell Method
See Also  Example
RowNum
The row number of the matrix or the grid.
startCol
The column from which you want to start the merge.
bMerge

Indicates whether to merge the cells.

  • True: merge
  • False: undo merge

Description

Merge cells in a row, from the first one you want until the last one you want.

The text displayed in a merged cell is the content from the first cell.

Syntax

Visual Basic
Public Sub MergeCell( _
   ByVal RowNum As Long, _
   ByVal startCol As Long, _
   Optional ByVal bMerge As Boolean = True _
) 

Parameters

RowNum
The row number of the matrix or the grid.
startCol
The column from which you want to start the merge.
bMerge

Indicates whether to merge the cells.

  • True: merge
  • False: undo merge

Example

Merging a Cell in a Matrix (C#)Copy Code
oMatrix.CommonSetting.MergeCell(row, col, true);

See Also