Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PersistenceValidationController.NeedToValidateObject Event

Occurs when determining objects to be validated.

Namespace: DevExpress.ExpressApp.Validation

Assembly: DevExpress.ExpressApp.Validation.v24.1.dll

#Declaration

public event EventHandler<NeedToValidateObjectEventArgs> NeedToValidateObject

#Event Data

The NeedToValidateObject event's data class is NeedToValidateObjectEventArgs. The following properties provide information specific to this event:

Property Description
CurrentObject Specifies an object which is about to be validated.
NeedToValidate Indicates whether the NeedToValidateObjectEventArgs.CurrentObject must be validated.

#Remarks

Handle this event to exclude particular objects from validation. This event is triggered for each object that is about to be validated. To exclude particular objects from validation, check that the object specified by the CurrentObject property fits your criteria and set the NeedToValidate property to false.

See Also