TTMSFNCCustomDataGrid.AutoSizeRow Method
Resizes a row to the height that fits its cell content.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
procedure AutoSizeRow(ARow: Integer; const AMode: TTMSFNCDataGridAutoSizeMode = gamAllCells; const APadding: Integer = 5);
void __fastcall AutoSizeRow(int ARow, const TTMSFNCDataGridAutoSizeMode AMode = (TTMSFNCDataGridAutoSizeMode)(0x1), const int APadding = 0x5);
Remarks
Wrapped text is measured against the current column widths, so size columns first.
Parameters
| Name | Description |
|---|---|
ARow |
Zero-based row index to resize. |
AMode |
Cells measured: gamAllCells (default) or only the cells currently on screen. |
APadding |
Extra pixels added to the measured content height. Default 5. |