Version

About WinValidator

WinValidator™ can validate any windows forms control through a control’s Validating event; or, if you’re using an Infragistics embeddable editor, you can change the ValidationTrigger to validate during the OnPropertyValueChanged event. You can use WinValidator on different controls through the extender properties it exposes. Through these properties, you can easily add new conditions to validate.

WinValidator offers three types of built-in conditions:

  • Operator – The operator condition allows you to perform several standard comparing operations between the value in the control, and the CompareValue of the OperatorCondition. See ConditionOperator for a full list of conditions.

  • Range – The range condition allows you to determine if a specific value is between the MinimumValue and MaximumValue .

  • List – The ContainedInListCondition object allows you to determine if a specific value is contained in a supplied ValueList . You can either supply a new ValueList at design time, or you can use a ValueList created at run time. The ListItemMatchMode allows you to match either the ValueListItem’s DisplayText or DataValue .

By default, WinValidator will display an image next to the control when it fails validation. You can change the Action that WinValidator performs when a control fails validation to a message box, balloon tip, or dialog box. These methods of information delivery are all customizable through the NotificationSettings object. Through this object, you can set the caption, text, and image to something that suits your entire application, or you can override each notification by setting these properties through the extender properties on the individual controls themselves.

example of ultravalidator