| Visual Basic (Declaration) | |
|---|---|
Public Property InvalidValueBehavior As InvalidValueBehavior | |
| C# | |
|---|---|
public InvalidValueBehavior InvalidValueBehavior {get; set;} | |
InvalidValueBehavior specifies what action to take when the user tries to leave the editor after entering an invalid value.
There are various ways a value in the editor can be considered invalid by the editor. If the entered text can not be parsed into an object of type specified by Infragistics.Controls.Editors.ValueInput.ValueType property, then the value is considered invalid. For example, if the ValueType is set to Int32 or any other numeric type and the user enteres a non-numeric text then the text can not be parsed into the value type. As a result the editor will consider the input invalid.
Another way the value can be considered invalid is if the entered value can not satisfy constraints specified by ValueInput.ValueConstraint object. For example, if ValueConstraint.MinInclusive is specified as 10 and the value entered is 8 then the value does not satisfy the constraints and thus will be considred invalid.