Class ComboBox

ComboBox class

Represents a cell combobox control.

public class ComboBox : CellControl

Properties

NameDescription
Height { get; set; }Gets or sets the height of the list control.
IsInputable { get; set; }Indicates if the user can input text to the combobox. The inputted text will be saved as the cell’s value. The default value is “false”.
Items { get; }Gets an object representing the collection of the items contained in this ComboBox.
SelectedIndex { get; set; }Gets or sets the index specifying the currently selected item. Setting the index will call GridDesktop.RunAllFormulas method automatic if GridDesktop.RecalculateFormulas property is true.
Text { get; set; }Gets or sets the text associated with this control.(Inherited from CellControl.)
Values { get; }Gets an object representing the collection of the values contained in this ComboBox.
Width { get; set; }Gets or sets the width of the list control.

Methods

NameDescription
SetSelectedIndex(int)Sets the Selected index of the ComboBox. This will not calculate formula. To calculate formula,need to call GridDesktop.RunAllFormulas manually. It will not auto calculate formulas in any case even GridDesktop.RecalculateFormulas is true.

See Also