Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ComboBoxCellType Class / Items Property
Example


In This Topic
    Items Property (ComboBoxCellType)
    In This Topic
    Gets or sets a string array of items for the combo box list.
    Syntax
    'Declaration
     
    
    Public Overridable Property Items As String()
    'Usage
     
    
    Dim instance As ComboBoxCellType
    Dim value() As String
     
    instance.Items = value
     
    value = instance.Items
    public virtual string[] Items {get; set;}

    Property Value

    String array containing items for the list
    Remarks
    This property is available at run time only.
    Example
    This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes. It returns the EditorClientScriptUrl to a text box.
    string[] cbstr;
    string[] strval;
    cbstr = new String[] { "One", "Two", "Three" };
    strval = new String[] { "1", "2", "3" };
    FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
    cb.Items = cbstr;
    FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
    FpSpread1.ActiveSheetView.DataModel.SetValue(0, 0, 1);
    TextBox1.Text = cb.EditorClientScriptUrl;
    Dim cbstr As String()
    cbstr = New String() {"One", "Two", "Three"}
    Dim strval As String()
    strval = New String() {"1", "2", "3"}
    Dim cb As New FarPoint.Web.Spread.ComboBoxCellType()
    cb.Items = cbstr
    FpSpread1.ActiveSheetView.Columns(0).CellType = cb
    FpSpread1.ActiveSheetView.DataModel.SetValue(0, 0, 1)
    TextBox1.Text = cb.EditorClientScriptUrl
    See Also