Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.FieldNames Property

Gets or sets the field name of the item at a given index in Columns.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCCustomDataGridDatabaseAdapter Type: string

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
property FieldNames[AIndex: Integer]: string;
__property System::UnicodeString FieldNames[int AIndex] = {read=GetFieldNames, write=SetFieldNames};

Remarks

Writing to an index beyond the end of the collection first adds unbound items up to that index, which makes this a compact way to define columns in code, for example Adapter.FieldNames[0] := 'Name';. Setting a name behaves like assigning TTMSFNCDataGridDatabaseAdapterColumn.FieldName. To read a binding, prefer Columns[AIndex].FieldName.