The requested page is not available for the requested platform. You are viewing the content for Default platform.

RuleBase.CustomFormatValidationMessage Event

Occurs when the validation result message is being formatted.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v19.1.dll


public static event EventHandler<CustomFormatValidationMessageEventArgs> CustomFormatValidationMessage
Public Shared Event CustomFormatValidationMessage As EventHandler(Of CustomFormatValidationMessageEventArgs)

Event Data

The CustomFormatValidationMessage event handler receives an argument of the DevExpress.Persistent.Validation.CustomFormatValidationMessageEventArgs type.


Handle this event to apply custom formatting to the validation result message. Use the handler's Object parameter to access an object that is being validated, MessageFormat - to access the error message template and the ResultMessage - to specify the resulting message. Set the handler's Handled parameter to true to cancel the default formatting.

See Also