Adds the specified DataGridView
and its associated error label to
the list of form fields to validate.
Namespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public void Add( DataGridView dataGridView, Label errLabel )
Parameters
- dataGridView
- Type: System.Windows.Forms DataGridView
The DataGridView to validate.
- errLabel
- Type: System.Windows.Forms Label
The error label to activate/deactivate based on validation.
Exceptions
Exception | Condition |
---|---|
System NullReferenceException | if an added Control does not have a Tag property defined. |
System ArgumentException | if a pattern attribute has an invalid regular expression. |
System FormatException | if any of the attributes that take numbers do not have a numerical argument. |
Remarks
See Also