RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterFieldGroup.AdapterMode Property

Specifies the mode of the adapter that the controls in the group support.

Pascal
property AdapterMode: string;
C++
__property AnsiString AdapterMode;

Some adapter components support different modes, or states. For example, dataset adapters can be in Edit, Insert, Browse, or Query mode. The mode of the adapter has an effect on the types of controls that the control group's Web items generate, and how those controls behave. 

If the adapter that is assigned to the Adapter property supports different modes, you can set AdapterMode to force the controls in the group to represent the adapter fields in the specified mode. When AdapterMode is blank, the adapter control group uses the current mode of the adapter at the time when it generates its controls in the HTML form. 

The possible values of AdapterMode depend on the modes that the adapter supports. If the adapter supports different modes, you can select a value for AdapterMode from a drop-down list in the Object Inspector that lists all the possible mode strings. If the adapter does not support different modes, the Object Inspector does not display a list, and the value of AdapterMode should be blank. 

 

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