Skip to main content
Table of Contents

TTMSFNCDataGrid.AddNodeRow Method

Converts a row into a collapsible node row that owns the rows directly below it.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddNodeRow(ARow: Integer; AChildCount: Integer; ALevel: Integer = 0; AMerge: Boolean = True);
void __fastcall AddNodeRow(int ARow, int AChildCount, int ALevel = 0x0, bool AMerge = true);

Remarks

The node starts expanded. Nothing happens (a log message is emitted) when the row already is a node or when one of the child rows is not a default row. Use ClearNodeRow to undo.

Parameters

Name Description
ARow Zero-based row index to convert.
AChildCount Number of rows directly below ARow that become its children; they receive level ALevel + 1.
ALevel Nesting level of the node; 0 (default) for a top-level node.
AMerge When True (default), the node row cells are merged across all non-fixed columns.