Table of Contents

TTMSFNCDataGridCore.StretchRows Method

Redistributes row heights to fill the available control height.

API unit family: TMSFNCDataGridCore Declaring type: TTMSFNCDataGridCore

Syntax

function StretchRows(AMode: TTMSFNCDataGridStretchingMode = gstmAll; ARange: TTMSFNCDataGridStretchingRange = gstrNormal; AIndex: Integer = -1; ANewHeight: Double = -1): Boolean;

Parameters

Name Description
AMode Which rows to resize: a single index, all equally, or proportionally.
ARange Whether to include hidden rows in the calculation.
AIndex Target row when AMode = gstmIndex; ignored otherwise.
ANewHeight Explicit target height in pixels; pass -1 to auto-fill.

Returns

True when at least one row height changed.