Spread Silverlight Documentation
ShowInputMessage Property (DataValidator)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > DataValidator Class : ShowInputMessage Property
Gets or sets whether to show the input message.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property ShowInputMessage As System.Boolean
'Usage
 
Dim instance As DataValidator
Dim value As System.Boolean
 
instance.ShowInputMessage = value
 
value = instance.ShowInputMessage
[System.ComponentModel.DefaultValue()]
public System.bool ShowInputMessage {get; set;}

Property Value

true if the data validator shows the input message; otherwise, false. The default value is true.
Example
This example sets the ShowInputMessage property.
var valid2 = GrapeCity.Windows.SpreadSheet.Data.DataValidator.CreateTextLengthValidator(GrapeCity.Windows.SpreadSheet.Data.ComparisonOperator.GreaterThan, "4", "20");
valid2.InputMessage = "Type more than four characters";
valid2.InputTitle = "Input Type";
valid2.ShowInputMessage = true;
gcSpreadSheet1.Sheets[0].Cells[2, 1].DataValidator = valid2;
gcSpreadSheet1.Sheets[0].Cells[2, 0].Text = "Type more than four characters.";
Dim valid2 = GrapeCity.Windows.SpreadSheet.Data.DataValidator.CreateTextLengthValidator(GrapeCity.Windows.SpreadSheet.Data.ComparisonOperator.GreaterThan, "4", "20")
valid2.InputMessage = "Type more than four characters"
valid2.InputTitle = "Input Type"
valid2.ShowInputMessage = True
GcSpreadSheet1.Sheets(0).Cells(2, 1).DataValidator = valid2
GcSpreadSheet1.Sheets(0).Cells(2, 0).Text = "Type more than four characters."
See Also

Reference

DataValidator Class
DataValidator Members