Spread for ASP.NET 8.0 Product Documentation
ListItems Property (ComboBoxCellType)
Example 


Gets or sets the list items for the combo box list.
Syntax
'Declaration
 
Public Property ListItems As ListItem()
'Usage
 
Dim instance As ComboBoxCellType
Dim value() As ListItem
 
instance.ListItems = value
 
value = instance.ListItems
public ListItem[] ListItems {get; set;}

Property Value

ListItem array with the list of items
Example
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
FarPoint.Web.Spread.ListItem[] items = new FarPoint.Web.Spread.ListItem[2];
FarPoint.Web.Spread.ListItem item = new FarPoint.Web.Spread.ListItem();
item.Text = "A";
item.Value = "1";
items[0] = item;
item = new FarPoint.Web.Spread.ListItem();
item.Text = "B";
item.Value = "2";
items[1] = item;
cb.ListItems = items;
cb.CssClass = "CssStyle1";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = cb;
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType
Dim items(2) As FarPoint.Web.Spread.ListItem
Dim item As New FarPoint.Web.Spread.ListItem
item.Text = "A"
item.Value = "1"
items(0) = item
item = New FarPoint.Web.Spread.ListItem
item.Text = "B"
item.Value = "2"
items(1) = item
cb.ListItems = items
cb.CssClass = "CssStyle1"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = cb
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.