RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.DefineFieldMap Method

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

Pascal
procedure DefineFieldMap; virtual;
C++
virtual __fastcall DefineFieldMap();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!