Stretches columns to the full size of the matrix by resizing them.
| Visual Basic |
|---|
Public Sub AutoResizeColumns() |
The width of the matrix can be larger than the total width of all its columns, creating a gap between the last column and the end of the matrix. The SAP Business One application overcomes this problem by resizing all the columns whenever the matrix is redrawn. This can happen unexpectedly when you work with a matrix.
Therefore, it is recommended to call the AutoResizeColumns method whenever you finish creating a matrix, making sure that the columns are always stretched to the full size of the matrix.