| Visual Basic (Declaration) | |
|---|---|
Public Class ValidationGroup Inherits Infragistics.Shared.KeyedSubObjectBase Implements Infragistics.Shared.IKeyedSubObject, Infragistics.Shared.IKeyedSubObjectEx | |
| C# | |
|---|---|
public class ValidationGroup : Infragistics.Shared.KeyedSubObjectBase, Infragistics.Shared.IKeyedSubObject, Infragistics.Shared.IKeyedSubObjectEx | |
The ValidationSettings class exposes a ValidationGroup property which can be set to any member of the ValidationGroups collection. The associated control (and the embeddable editor it provides, if applicable) then belongs to that group, and can be validated along with each of the other members of the group by calling the Validate(ValidationGroup) method.
The ValidationGroup class exposes only one significant property, Enabled. If the Enabled property is set to false, validation is temporarily suspended for each of the controls whose ValidationGroup property references that group. Note, however, that the Enabled property is not observed when validation is triggered programmatically; in that case, it is assumed the caller wants to override the enabled state of the group.