Skip to main content
Table of Contents

TTMSFNCDataGridClipboardOptions.AllowRowGrow Property

When True, pasting content that has more rows than the current row count automatically adds new rows. Default is False.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridClipboardOptions Type: Boolean

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
property AllowRowGrow: Boolean;
__property bool AllowRowGrow = {read=FAllowRowGrow, write=FAllowRowGrow, default=0};

Default: False

Remarks

When False, lines that fall beyond the last row are dropped. Not needed with PasteAction set to gpaInsert, which inserts rows anyway.

Usage examples

Configure paste growth, insert mode, and read-only handling

Configure how the grid applies tab-delimited clipboard data when pasted content is larger than the current grid or targets read-only cells.

Configure paste growth, insert mode, and read-only handlingPascalC++
procedure TForm1.ConfigureClipboardPaste;
begin
  Grid.Options.Clipboard.AllowRowGrow := True;
  Grid.Options.Clipboard.AllowColumnGrow := True;
  Grid.Options.Clipboard.PasteAction := gpaInsert;
  Grid.Options.Clipboard.IgnoreReadOnly := False;
end;
void __fastcall TForm1::ConfigureClipboardPaste()
{
  Grid->Options->Clipboard->AllowRowGrow = true;
  Grid->Options->Clipboard->AllowColumnGrow = true;
  Grid->Options->Clipboard->PasteAction = gpaInsert;
  Grid->Options->Clipboard->IgnoreReadOnly = false;
}

Read the related guide