AddChildRow
Add child row(s) inside parent row.
function AddChildRow(const Index: Integer; const Count: Integer = 1; IgnoreDefaults: Boolean = True): INxCellsRow; overload;
function AddChildRow(ParentRow: INxRow; Count: Integer = 1; IgnoreDefaults: Boolean = True): INxCellsRow; overload;Parameters
Integer
Integer
Boolean
DefaultValue of columns will be ignored.
Example
procedure TForm2.Button1Click(Sender: TObject);
var
NewRow, ChildRow: INxCellsRow;
begin
NewRow := NextGrid61.AddRow;
ChildRow := NextGrid61.AddChildRow(NewRow);
ChildRow.Cells[0].AsString := 'Child';
end;Remarks
If IgnoreDefault is True the operation of adding rows will be slightly faster.