Vcl.DBCtrls.TDBLookupControl.KeyValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property KeyValue: Variant read FKeyValue write SetKeyValue;

C++

__property System::Variant KeyValue = {read=FKeyValue, write=SetKeyValue};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBLookupControl

Description

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.

See Also