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


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType 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 GcNumberCellType
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 GcNumber.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 sets the ShowRecommendedValue property.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
//Press enter or double-click on the cell to see the recommended value
ncell1.RecommendedValue = 5;
ncell1.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
'Press enter or double-click on the cell to see the recommended value
ncell1.RecommendedValue = 5
ncell1.ShowRecommendedValue = True
fpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members