Version

ValidationCriteria Property

Gets or sets the criteria to use when validating the cell value against the constraint(s).
Syntax
public DataValidationCriteria ValidationCriteria {get; set;}
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionOccurs when the value is not a member of the DataValidationCriteria enumeration.
Remarks

Depending on the value specified, either then cell value or the length of its text equivalent will be compared against the constraint(s). In addition, certain ValidationCriteria values may disallow a cell value even if it is valid when compared to the constraint. For example, the ValidationCriteria.WholeNumber value will not allow any number with a fractional portion.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also