Spread Windows Forms 11.0 Product Documentation
ShowRecommendedValue Property (GcDateTimeCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : ShowRecommendedValue Property
Gets or sets a value that indicates whether to show the recommended value.
Syntax
'Declaration
 
Public Property ShowRecommendedValue As Boolean
'Usage
 
Dim instance As GcDateTimeCellType
Dim value As Boolean
 
instance.ShowRecommendedValue = value
 
value = instance.ShowRecommendedValue
public bool ShowRecommendedValue {get; set;}

Property Value

true to show the recommended value; otherwise, false.
The default is false.
Remarks
The value of the GcDateTime.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.
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

GcDateTimeCellType Class
GcDateTimeCellType Members