RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterGrid.AddDefaultFields Property

Specifies whether the adapter control group generates controls for the adapter's default fields when you do not explicitly add Web items.

Pascal
property AddDefaultFields: Boolean;
C++
__property Boolean AddDefaultFields;

Set AddDefaultFields to indicate how you want the adapter control group to respond when you do not explicitly add child Web items. You can add child Web items at design time using Adapter page editor, or by right-clicking the control group and selecting Add Fields or Add Component. You can add child Web items at runtime using the Add method of the WebFieldControls property. 

When AddDefaultFields is true, if you do not add child Web items to the adapter control group, it generates a default set of child Web items to display the fields of the adapter component that the Adapter property specifies. 

When AddDefaultFields is false, if you do not add child Web items to the adapter control group, it remains empty, displaying no field values. 

 

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