The following classes represent the validation criteria that are available:
-
ConstantListCriterion: Compares the value in an input component with a list of constant values.
-
ConstantValueCriterion: Compares the value in an input component with a constant value.
-
DataTypeCriterion: Determines whether the value entered into an input component is of the appropriate data type. Note: All validation types except regular expressions include a data type validation.
-
InputCellValueCriterion: Compares the values in two Xceed Grid for WinForms cells.
-
InputValueCriterion: Compares the value in an input component with the value in another input component.
-
RangeCriterion: Checks whether the value in an input component is within an inclusive range, specified by a maximum and minimum constant value.
-
RegularExpressionCriterion: Determines whether the value of an input component matches a pattern defined by a regular expression.
All types of validation criteria derive from the ValidationCriterion class, which determines whether or not an input component's value is case sensitive, whether or not whitespace characters should be trimmed from a value before validation, and a name used to refer to the validation criterion. Each validation criterion also has a CustomValidationMessages property, which allows validation error messages to be overridden for that criterion. For details on custom validation error messages, see Customizing Error Messages.
In addition to validating the value of an input component, Input Validator for WinForms can also check for required fields. For details on how to configure these criteria visually, see Setting Up Validation Expressions Visually.