Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.GetRootRow Method

Returns the top-level (level 0) node row above a row.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function GetRootRow(ARow: Integer): Integer;
int __fastcall GetRootRow(int ARow);

Remarks

The search starts at the row above ARow, so a level-0 node row does not return itself.

Parameters

Name Description
ARow Zero-based row index of a descendant row.

Returns

The nearest level-0 node row above ARow, or -1 when there is none or the row is invalid.