📚 SAP Business One SDK Help

SeparateLine Method
See Also  Example
RowNum
The row number of the matrix or the grid.
color
The color of the separation line.
separateLineType

The type of the separation line.

Note:

The SeparateLine feature and the MergeCell feature cannot be used in the same row.

For the rows that use the MergeCell feature, you can separate them by drawing a bottom separation line in the row above and drawing a top separation line in the row below.

bDraw
Indicates whether to draw a separation line.

Description

The separation line between two rows.

Syntax

Visual Basic
Public Sub SeparateLine( _
   ByVal RowNum As Long, _
   ByVal color As Long, _
   ByVal separateLineType As BoSeparateLineType, _
   Optional ByVal bDraw As Boolean = True _
) 

Parameters

RowNum
The row number of the matrix or the grid.
color
The color of the separation line.
separateLineType
ValueDescription
slt_TopThe separation line is at the top of a row.
slt_BottomThe separation line is at the bottom of a row.

The type of the separation line.

Note:

The SeparateLine feature and the MergeCell feature cannot be used in the same row.

For the rows that use the MergeCell feature, you can separate them by drawing a bottom separation line in the row above and drawing a top separation line in the row below.

bDraw
Indicates whether to draw a separation line.

Example

Creating a Separate Line in a Matrix (C#)Copy Code
oMatrix.CommonSetting.SeperateLine(row, color, true);

See Also