RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupComboBox.KeyValue Property

Represents the common value of the KeyField field and the DataField field.

Pascal
property KeyValue: Variant;
C++
__property Variant KeyValue;

Use KeyField to determine the value represented by the lookup control (not the value displayed by the lookup control). When KeyValue is set, the lookup control attempts to find a record from the ListSource's dataset where the value of KeyField matches KeyValue. If such a match is found, the lookup control displays the value of ListField on that record. 

 

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