Spread Windows Forms 12.0 Product Documentation
RecommendedValue Property (GcTextBoxCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : RecommendedValue Property
Gets or sets the recommended value.
Syntax
'Declaration
 
Public Property RecommendedValue As String
'Usage
 
Dim instance As GcTextBoxCellType
Dim value As String
 
instance.RecommendedValue = value
 
value = instance.RecommendedValue
public string RecommendedValue {get; set;}

Property Value

A string value that indicates the recommended value.
The default is System.String.Empty.
Remarks
The RecommendedValue property provides a hint for the user and is shown when the value is not completely entered. When a value is being entered, pressing a special shortcut key or key combination accepts the recommended value.
Example
This example uses the RecommendedValue property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
datecell.RecommendedValue = System.DateTime.Now;
datecell.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.RecommendedValue = "Test";
textcell.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = textcell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
datecell.RecommendedValue = System.DateTime.Now
datecell.ShowRecommendedValue = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell

Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.RecommendedValue = "Test"
textcell.ShowRecommendedValue = True
fpSpread1.Sheets(0).Cells(1, 1).CellType = textcell
See Also

Reference

GcTextBoxCellType Class
GcTextBoxCellType Members