Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.GetPageIndexForRow Method

Returns the zero-based page index that contains the given absolute row index.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
function GetPageIndexForRow(ARow: Integer): Integer;
int __fastcall GetPageIndexForRow(int ARow);

Parameters

Name Description
ARow Absolute row index to map to a page. Rows before the first scrollable row map to page 0.

Returns

The zero-based page index, clamped to the range 0 to PageCount - 1; 0 when the grid has no rows or no page size.