Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.FieldAtColumn Property

Returns the dataset field bound to an adapter column.

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

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
property FieldAtColumn[AColumn: Integer]: TField;
__property Data::Db::TField* FieldAtColumn[int AColumn] = {read=GetFieldAtColumn};

Remarks

AColumn is a zero-based index into Columns, not a grid column index; subtract the grid's fixed column count from a grid column first. Returns nil when no open dataset is linked, the index is out of range, the column has no field name, or it uses an TTMSFNCDataGridDatabaseAdapterColumn.HTMLTemplate. The field is looked up with FieldByName, so an unknown field name raises the dataset's EDatabaseError.