Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

RuleSet.CustomValidateRule Event

Occurs when a rule is being validated.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v24.2.dll

#Declaration

public static event EventHandler<CustomValidateRuleEventArgs> CustomValidateRule

#Event Data

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

Property Description
ObjectSpace An Object Space of a validation target.
Rule A rule to be checked on a CustomValidateRuleEventArgs.Target.
RuleValidationResult The result of checking the CustomValidateRuleEventArgs.Rule on the CustomValidateRuleEventArgs.Target.
Target An object on which to check the CustomValidateRuleEventArgs.Rule.

#Remarks

Handle this event to customize a rule before it is validated or perform a validation manually.

See Also