ValidationProvider.PerformValidation

Topics: Validation Application Block
Aug 23, 2007 at 4:19 PM
If we could have an overload ( bool PerformValidation() ) that would iterate through all ValidedControlItem and Perform Validation on each, it would allow validation of an entire form to be processed
on the SaveButton.Click instead of the Control.Validating.

Scenario:
Associate the Validation Provider to N controls on the form. Set PerformValidation to false on all controls
Handle Save.Click. Call validationProvider.PerformValidation(). It it returns false, cancel the Save