Spread Windows Forms 7.0 Product Documentation
EditorValue Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : EditorValue Property


Glossary Item Box

Gets or sets what value is written to the underlying data model.

Syntax

Visual Basic (Declaration) 
Public Property EditorValue As EditorValue
Visual Basic (Usage)Copy Code
Dim instance As ComboBoxCellType
Dim value As EditorValue
 
instance.EditorValue = value
 
value = instance.EditorValue
C# 
public EditorValue EditorValue {get; set;}

Property Value

EditorValue setting that determines the value written to the data model

Example

This example specifies what is written out to the data model for a selected item in the cell.
C#Copy Code
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType(); 
cb.Items = new string[]{"One", "Two", "Three", "Four"}; 
cb.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.String;
Visual BasicCopy Code
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType
cb.Items = New String() {"One", "Two", "Three", "Four"}
cb.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.String

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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