📚 SAP Business One SDK Help

AutoResizeColumns Method
See Also 

Description

Stretches columns to the full size of the matrix by resizing them.

Syntax

Visual Basic
Public Sub AutoResizeColumns() 

Remarks

The width of the grid can be larger than the total width of all its columns, creating a gap between the last column and the end of the grid.  The SAP Business One application overcomes this problem by resizing all the columns whenever the grid is redrawn. This can happen unexpectedly when you work with a grid.

Therefore, it is recommended to call the AutoResizeColumns method whenever you finish creating a grid, making sure that the columns are always stretched to the full size of the grid. 

See Also