TcxDBLookupComboBox.DataBinding Property
Represents an editor connection to a dataset field being edited.
Declaration
property DataBinding: TcxDBTextEditDataBinding read; write;
Property Value
Type |
---|
TcxDBTextEditDataBinding |
Remarks
The DataBinding property represents an object providing an editor connection to a data storage. For the TcxDBLookupComboBox control, the DataBinding.DataSource property identifies a TDataSource object connected to a dataset whose records are edited. The field being edited is determined by the DataBinding.DataField property.
A lookup combo box allows you to edit a DataField value by picking up a record from the dropdown list which displays data from another data source (the Properties.ListSource property). This data source must contain a key field matching DataField. Use the editor’s Properties.KeyFieldNames property to specify the key field.
When a user navigates through the dropdown list, the editor’s EditValue matches the value of the key field, corresponding to the currently selected dropdown list record. Posting the edit value modifies a DataField value.