RuleSet.CustomIsEmptyValue Event

Occurs when the RuleSet.IsEmptyValue method is executed to determine whether or not the property value is considered empty.

Namespace: DevExpress.Persistent.Validation

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


public static event EventHandler<CustomIsEmptyValueEventArgs> CustomIsEmptyValue
Public Shared Event CustomIsEmptyValue As EventHandler(Of CustomIsEmptyValueEventArgs)

Event Data

The CustomIsEmptyValue event handler receives an argument of the CustomIsEmptyValueEventArgs type.


Note that the event occurs at the validation process of each rule to determine whether a property value should be considered empty.

Handle this event to determine when the RuleRequiredFieldAttribute validation rule considers that its target property has a value. Access the handler's CustomIsEmptyValueEventArgs.TargetObject, CustomIsEmptyValueEventArgs.PropertyName and CustomIsEmptyValueEventArgs.PropertyValue parameters to implement the custom validation logic. Pass the validation result via the handler's CustomIsEmptyValueEventArgs.IsEmpty parameter and set the Handled parameter to true.

See Also