Spread for ASP.NET 7.0 Product Documentation
Values Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ComboBoxCellType Class : Values Property


Glossary Item Box

Gets or sets a string array of values for the combo box list.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Values As String()
Visual Basic (Usage)Copy Code
Dim instance As ComboBoxCellType
Dim value() As String
 
instance.Values = value
 
value = instance.Values
C# 
public virtual string[] Values {get; set;}

Property Value

String array containing the values for the corresponding list items

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 sets the text in the cell using the values.
C#Copy Code
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;
cb.Values=strval;
FpSpread1.ActiveSheetView.Columns[0].CellType=cb;
FpSpread1.ActiveSheetView.DataModel.SetValue(0,0,"1");
TextBox1.Text=cb.EditorClientScriptUrl;
Visual BasicCopy Code
Dim cbstrAsString()
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
cb.Values=strval
FpSpread1.ActiveSheetView.Columns(0).CellType=cb
FpSpread1.ActiveSheetView.DataModel.SetValue(0,0,"1")
TextBox1.Text=cb.EditorClientScriptUrl

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.