Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.AutoNumberColumn Method

Fills a column with consecutive integers.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
procedure AutoNumberColumn(AColumn: Integer; AStartRow: Integer = 0; AStartValue: Integer = 0);
void __fastcall AutoNumberColumn(int AColumn, int AStartRow = 0x0, int AStartValue = 0x0);

Remarks

Fills every row from AStartRow through the last row, fixed bottom rows included.

Parameters

Name Description
AColumn Zero-based column index to fill.
AStartRow First row to fill; default 0, which includes the fixed header row, so pass FixedRowCount to number only data rows.
AStartValue Value written to AStartRow; default 0. Each following row receives the next integer.

Examples

Pascal
Grid.AutoNumberColumn(0, Grid.FixedRowCount, 1);