Stretches columns to the full size of the matrix by resizing them.
| Visual Basic |
|---|
Public Sub AutoResizeColumns() |
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.