📚 SAP Business One SDK Help

FixedColumnsCount Property
See Also  Example

Description

Enables you to pin a column in a grid or a matrix.

Property type

Read-write property

Syntax

Visual Basic
Public Property FixedColumnsCount() As Long

Remarks

System matrix is not supported.

When a grid is collapsed, there are no pinning columns exist in grid.

Example

C#Copy Code
oGrid.CommonSetting.FixedColumnsCount = 4; 
 
//The FixedColumnsCount ranging from 1 to oGrid.ColumnCount will take effect.  
//Set count less than 1 will actually set count to 1 due to the system grid behavior. 
//Set count over the actual column count will cause exception – invalid column number. 
//Set FixedColumnsCount in system matrix will cause exception. 
//Column count based on physical count. Invisible & deleted column is taken in count. 
//First column was fixed by default and set FixedColumnCount to 0 does not affect the first column. 

See Also