Skip to main content
Table of Contents

TTMSFNCDataGridCore.LoopThroughRows Method

Iterates every row and invokes with the row index.

API unit family: TMSFNCDataGridCore Declaring type: TTMSFNCDataGridCore

Syntax

FMX.TMSFNCDataGridCore.hppPascalC++
procedure LoopThroughRows(ALoopCallback: TTMSFNCDataGridLoopRowsCallback; AIncludeFixed: Boolean = True);
void __fastcall LoopThroughRows(_di_TTMSFNCDataGridLoopRowsCallback ALoopCallback, bool AIncludeFixed = true);

Remarks

Hidden and filtered rows are visited too; test IsRowHidden in the callback to skip them. Wrap the call in BeginUpdate/EndUpdate when the callback changes cells or layout.

Parameters

Name Description
ALoopCallback Anonymous procedure called once per row, in ascending index order.
AIncludeFixed When True (default), all rows from 0 to RowCount - 1 are visited; when False, the fixed top and fixed bottom rows are skipped. Freeze rows are always visited.

Examples

Pascal
Grid.LoopThroughRows(
procedure(ARow: Integer)
begin
Grid.Cells[0, ARow] := IntToStr(ARow);
end);