class ColumnComboBox
A combobox in a grid column.
Syntax
These controls are created by assigning the appropriate editorType to the GridColumn object.
Properties
The following tables list the properties of interest in the ColumnComboBox class. (No particular events or methods are associated with this class.)
Property |
Default |
Description |
false |
whether or not trailing spaces are trimmed from character strings loaded from the control's dataSource. | |
COLUMNCOMBOBOX |
Identifies the object as an instance of the ColumnComboBox class | |
(COLUMNCOMBOBOX) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
|
The color of the text in the ColumnComboBox object when the object has focus | |
WindowText |
The color of the text in the ColumnComboBox object when the object does not have focus | |
|
The option strings of the ColumnComboBox object | |
|
The number of options displayed in the drop-down list | |
|
The width of the drop-down list in the form’s current metric units | |
|
A text formatting function | |
|
Formatting template | |
false |
Whether the options are sorted | |
|
The value currently displayed in the ColumnComboBox object
|
The following table lists the common properties, events, and methods of the ColumnComboBox class:
Property |
|
Event |
|
Method |
borderStyle
|
none |
Description
A ColumnComboBox is a simplified ComboBox control in a grid column. The combobox is always the DropDownList style. When the enumerated editorType property of a GridColumn control is set to ComboBox, the column uses a ColumnComboBox control, which is accessible through the GridColumn object’s editorControl property.
Only the cell that has focus appears as a combobox. All other cells in the column which do not have focus appear as ColumnEntryfield controls instead, with no drop-down control.
As with all column controls, the dataLink
and width for the control is
in the parent GridColumn object, not the control itself. The height
is controlled by the cellHeight
of the grid.
If a mouse event is implemented for this control it overrides the matching
grid level event.