Vcl.DBCtrls.TDBLookupControl.KeyField
Delphi
property KeyField: string read GetKeyFieldName write SetKeyFieldName;
C++
__property System::UnicodeString KeyField = {read=GetKeyFieldName, write=SetKeyFieldName};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | protected | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBLookupControl |
説明
DataField 項目の値と一致する ListSource データセットの項目を指定します。
KeyField プロパティを使用すると,参照コントロールの ListSource を DataSource にリンクできます。KeyField として指定された項目名は DataField として指定された項目名と同じである必要はありませんが,2 つの項目の値は同じでなければなりません。
ListField を指定したら,参照コントロールが実際に ListField プロパティで表示する項目を選択します。
DataField 項目が参照項目の場合 KeyField または ListField に対して何も指定しないでください。参照コントロールは,KeyField に対してデータ項目の LookupKeyFields のプロパティを自動的に使用します。