Developer

LastAddedRow

Indicate index of last added row.

property LastAddedRow: Integer read FLastAddedRow;
Methods such as AddRow and InsertRow update this property.

This property is useful when newly added row need to be adjusted.

Example:


NextGrid1.AddRow; NextGrid1.RowHeight[NextGrid1.LastAddedRow] := 32; NextGrid1.Cell[2, NextGrid1.LastAddedRow].AsString := Edit1.Text; NextGrid1.SelectedRow := NextGrid1.LastAddedRow;

See also