TTMSFNCDataGridRenderer.AutoSizeColumn Method
Resizes the given column to the minimum width that fits all cell content, optionally restricted to visible cells.
APaddingadds extra pixels beyond the measured content width.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Syntax
procedure AutoSizeColumn(AColumn: Integer; const AMode: TTMSFNCDataGridAutoSizeMode = gamAllCells; const APadding: Integer = 5);
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index to resize. |
AMode |
Cell scope used when measuring the required width. |
APadding |
Extra pixels added to the measured content width. |