RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.FieldModes Property

Indicates what dataset adapter modes this field supports.

Pascal
property FieldModes: TDataSetAdapterModes;
C++
__property TDataSetAdapterModes FieldModes;

FieldModes is a set of all the modes in which this adapter field can be used. If the parent dataset adapter is in a mode that is not included in this set, any forms generated using that adapter do not include a control to represent this field. Thus, for example, to make a field read-only, you can exclude amInsert and amEdit from FieldModes. Then, the field appears when the user is viewing or querying the dataset, but not when the user is editing or inserting a record. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!