Spread for ASP.NET 11 Product Documentation
ComboBoxCellType Constructor()
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ComboBoxCellType Class > ComboBoxCellType Constructor : ComboBoxCellType Constructor()
Creates a new combo box.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New ComboBoxCellType()
public ComboBoxCellType()
Example
This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes.
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
string[] cbstr; 
cbstr = new String[] {"One", "Two", "Three"};
cb.Items = cbstr;
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType()
    Dim cbstr As String()
    cbstr = New String() {"One", "Two", "Three"}
    cb.Items = cbstr
    FpSpread1.ActiveSheetView.Columns(0).CellType = cb
See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members
Overload List