Spread ASP.NET 15
FarPoint.Web.Spread.Extender Assembly / FarPoint.Web.Spread.Extender Namespace / AjaxComboBoxCellType Class / AjaxComboBoxCellType Constructor
Example


In This Topic
    AjaxComboBoxCellType Constructor
    In This Topic
    Creates a new ASP.NET AJAX extender numeric up-down cell.
    Syntax
    'Declaration
     
    Public Function New()
    'Usage
     
    Dim instance As New AjaxComboBoxCellType()
    public AjaxComboBoxCellType()
    Example
    This example creates an Ajax combo cell.
    FarPoint.Web.Spread.Extender.AjaxComboBoxCellType combo = new FarPoint.Web.Spread.Extender.AjaxComboBoxCellType();
    combo.BackColor = System.Drawing.Color.Aquamarine;
    combo.AutoCompleteMode = AjaxControlToolkit.ComboBoxAutoCompleteMode.Append;
    combo.ShowEditor = true;
    combo.DropDownStyle = AjaxControlToolkit.ComboBoxStyle.DropDown;
    combo.ItemInsertLocation = AjaxControlToolkit.ComboBoxItemInsertLocation.OrdinalText;
    combo.Items.Add("test");
    combo.Items.Add("second");
    combo.CaseSensitive = true;
    combo.AutoPostBack = true;
    FpSpread1.Sheets[0].Cells[0, 0].CellType = combo;
    Dim combo As New FarPoint.Web.Spread.Extender.AjaxComboBoxCellType()
    combo.BackColor = System.Drawing.Color.Aquamarine
    combo.AutoCompleteMode = AjaxControlToolkit.ComboBoxAutoCompleteMode.Append
    combo.ShowEditor = True
    combo.DropDownStyle = AjaxControlToolkit.ComboBoxStyle.DropDown
    combo.ItemInsertLocation = AjaxControlToolkit.ComboBoxItemInsertLocation.OrdinalText
    combo.Items.Add("test")
    combo.Items.Add("second")
    combo.CaseSensitive = True
    combo.AutoPostBack = True
    FpSpread1.Sheets(0).Cells(0, 0).CellType = combo
    See Also