API:Vcl.DBCtrls.TCustomDBLookupComboBox.KeyValue
Delphi
property KeyValue;
C++
__property KeyValue = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TCustomDBLookupComboBox |
Description
Represents the common value of the KeyField field and the DataField field.
Vcl.DBCtrls.TCustomDBLookupComboBox.KeyValue inherits from Vcl.DBCtrls.TDBLookupControl.KeyValue. All content below this line refers to Vcl.DBCtrls.TDBLookupControl.KeyValue.
Represents the common value of the KeyField field and the DataField field.
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.