Skip to main content
Version: 4.2

AutoValidate

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Determines how a control validates its data when it loses user input focus.

public enum AutoValidate

Select one of the named values, such as Inherit, Disable, EnablePreventFocusChange. The member descriptions define the behavior of each value.

Fields​

NameDescriptionValue
DisableImplicit validation will not occur. Setting this value will not interfere with explicit calls to Validate or ValidateChildren.
EnableAllowFocusChangeImplicit validation occurs, but if validation fails, focus will still change to the new control. If validation fails, the Validated event will not fire.
EnablePreventFocusChangeImplicit validation occurs when the control loses focus. If validation fails, the Validated event will not fire.
InheritThe control inherits its AutoValidate behavior from its container (such as a form or another control). If there is no container control, it defaults to EnablePreventFocusChange.

Used By​

NameDescription
Form.AutoValidateGets or sets how the control performs validation when the user changes focus to another control.
Page.AutoValidateGets or sets how the control performs validation when the user changes focus to another control.
UserControl.AutoValidateGets or sets how the control performs validation when the user changes focus to another control.