Spread Windows Forms 7.0 Product Documentation
ShowRecommendedValue Property
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : ShowRecommendedValue Property


Glossary Item Box

Gets or sets a value that indicates whether to show the recommended value.

Syntax

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

Property Value

true to show the recommended value; otherwise, false.
The default is false.

Remarks

The value of the GcTextBox.RecommendedValue property is shown when ShowRecommendedValue is true and the value is not completely entered; otherwise, the value of the RecommendedValue property is not shown.

Example

This example uses the ShowRecommendedValue property.
C#Copy Code
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;
VB.NETCopy Code
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

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.