RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapterField.ValuesList Property

Specifies the interface of an object that lists the possible values for this field.

Pascal
property ValuesList: IValuesListAdapter;
C++
__property IValuesListAdapter ValuesList;

ValuesList is the interface of an adapter that lists a set of values. It can be the interface of any object that supports the IValuesListAdapter interface, such as TStringsValuesList or TDataSetValuesList. Each value in the list that this adapter maintains represents a possible value for this field. This is useful when you want to restrict the possible values a user can assign to the associated database field. 

When you assign a value to the ValuesList property, the default control for editing this fields value changes to a single selection list box. 

 

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