TcxLookupDBGridColumns Class
Represents a collection of columns located within the dropdown list of a lookup combo box.
Declaration
TcxLookupDBGridColumns = class(
TcxLookupGridColumns
)
Remarks
The TcxLookupDBGridColumns collection contains columns displayed within the dropdown list of a lookup combo box. Columns provide a convenient data representation within the dropdown list and they allow the performing of different actions (sorting, for instance).
Columns can be added to or removed from the collection both at design time and via code. At design time, a user can work with the ListColumns collection editor to add or remove columns from the collection, specify the data source field for each column or change a specific column’s settings, such as width and sorting, etc. Another way of editing the ListColumns collection is to use the LookupComboBox.Properties.ListFieldNames property. A user can add a column to the collection by adding a new data source’s field name to the LookupComboBox.Properties.ListFieldNames property value. A column can be removed if the name of the corresponding data source field is removed from the LookupComboBox.Properties.ListFieldNames property value.