Skip to main content
Version: 3.5

IValidation

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides access to the validation events and properties property for controls that support validation.

public interface IValidation

Using IValidation allows developers to use uniform code to access the validation-related properties and events used by the control.


// Old code
if (control is TextBox)
((TextBox)control).InvalidMessage = "Required";
else if (control is ComboBox)
((ComboBox)control).InvalidMessage = "Required";
// etc...

// New code
if (control is IValidation)
((IValidation)control).InvalidMessage = "Required";

Properties

Instance memberInvalidMessage

String: Returns or sets the invalid message that is shown in the invalid tooltip.

Events

Instance memberValidated

EventHandler Fired when the control is finished validating.

Instance memberValidating

CancelEventHandler Fired when the control is validating.

Implemented By

NameDescription
CheckBoxRepresents a check box control.
CheckedListBoxDisplays a ListBox in which a check box is displayed to the left of each item.
ComboBoxRepresents a combo box control.
DateTimePickerRepresents a control that allows the user to select or type a date and a time.
DomainUpDownRepresents a spinner control that displays string values.
ListBoxRepresents a control to display a list of items.
ListControlProvides a common implementation of members for the ListBox and ComboBox classes.
MaskedTextBoxUses a mask to distinguish between proper and improper user input.
NumericUpDownRepresents a spinner control that displays numeric values.
RadioButtonEnables the user to select a single option from a group of choices when paired with other RadioButton controls.
TextBoxRepresents a text box control that allows the user to enter any value.
TextBoxBaseImplements the basic functionality required by text controls.
UpDownBaseImplements the basic functionality required by a spin box (also known as an up-down control).
DataGridViewComboBoxEditingControlRepresents a ComboBox control that can be hosted in a DataGridViewComboBoxCell.
DataGridViewDateTimePickerEditingControlRepresents a DateTimePicker control that can be hosted in a DataGridViewDateTimePickerCell.
DataGridViewMaskedTextBoxEditingControlRepresents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell.
DataGridViewNumericUpDownEditingControlRepresents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell.
DataGridViewTextBoxEditingControlRepresents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False.
ListViewComboBoxThe TreeViewComboBox control represents a UserComboBox control with a ListView as the drop down panel.
TagTextBoxRepresents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field.
TimeUpDownRepresents a spinner control that displays TimeSpan values.
TreeViewComboBoxThe TreeViewComboBox control represents a UserComboBox control with a TreeView as the drop down panel.
TypedTextBoxRepresents a text box control that allows the user to enter a typed value.
UploadRepresent an upload widget. Allows users to selected one or more files and upload them to the server.
UserComboBoxThe UserComboBox control represents a ComboBox control with a custom panel that drops down when the user clicks the down arrow.