TTMSFNCDataGrid.AutoSizeGrid Method
Resizes both all columns and all rows to fit their content.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Syntax
procedure AutoSizeGrid(const AMode: TTMSFNCDataGridAutoSizeMode = gamAllCells; const APaddingColumn: Integer = 5; const APaddingRow: Integer = 5);
Parameters
| Name | Description |
|---|---|
AMode |
Determines which cells are measured. |
APaddingColumn |
Extra column padding in pixels. |
APaddingRow |
Extra row padding in pixels. |