TcxDBListBox Class
Represents the data-aware version of TcxListBox.
Declaration
TcxDBListBox = class(
TcxListBox
)
Remarks
TcxDBListBox is the data-aware version of the cxListBox control. This control uses the standard list box control (TListBox) to implement most of its functionality. Thus, most properties, methods and events of the TcxListBox control are identical to those of the TListBox control.
The following basic features are available in the list box control:
Displaying, sorting, selecting items within the list;
Moving and copying items to another list control;
Arranging items into several columns;
Painting items in a custom manner and assigning custom height to individual items;
Working in virtual mode – item captions and data are supplied using event handlers.
The TcxDBListBox control is bound to a DataBinding.DataSource field specified by the DataBinding.DataField property. In order to perform correct data source editing, the data-bound list box must be populated with DataBinding.DataField values. When you navigate the data set, the list box item corresponding to the bound field value within the current record is highlighted. If you select another list box item, then the corresponding field value changes. If the current record’s field value has no corresponding items within the list, then no items are highlighted within the list box.