Vcl.DBGrids.TCustomDBGrid.DefineFieldMap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefineFieldMap; virtual;

C++

virtual void __fastcall DefineFieldMap();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

Builds the Fields array from the Columns property and the data source.

Applications cannot call this protected method. DefineFieldMap rebuilds the Fields array to reflect the fields from the data source that correspond to the columns in the Columns property. After calling DefineFieldMap, the Columns property should be updated to use the field components in the Fields array. This ensures that the Columns property reflects any changes imposed by the dataset.

See Also