Infragistics(R) NetAdvantage(R) Windows Forms
ValidationGroup Class
Members  See Also  E-mail your feedback on this topic.
Infragistics.Win.Misc Namespace : ValidationGroup Class

Provides a way to logically group controls for the purpose of enabling/disabling them, and also to programmatically validated each member of the ValidationGroup.

Syntax

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  

Remarks

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.

See Also