Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDateTime Class / ShowRecommendedValue Property


In This Topic
    ShowRecommendedValue Property (GcDateTime)
    In This Topic
    Gets or sets a value indicating whether show the RecommendedValue.
    Syntax
    'Declaration
     
    Public Property ShowRecommendedValue As Boolean
    'Usage
     
    Dim instance As GcDateTime
    Dim value As Boolean
     
    instance.ShowRecommendedValue = value
     
    value = instance.ShowRecommendedValue
    public bool ShowRecommendedValue {get; set;}

    Property Value

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

    If user set this property to true, GcDateTime will show a lighter text on the field based on the RecommendedValue. If the fields contains Japan era year field, it will show corresponding era year name.

    If FieldSet doesn't contain any field, the recommended value will not be shown and the ApplyRecommendedValueCommand execution will do nothing either.

    Recommended value has lower priority than display fields and watermark. When watermark or display fields is shown, the recommended value is not shown any more, but the ApplyRecommendedValueCommand still works in this case.

    See Also