.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleBase.CustomFormatValidationMessage Event

Occurs when the validation result message is being formatted.

Namespace: DevExpress.Persistent.Validation

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

Declaration

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

Event Data

The CustomFormatValidationMessage event's data class is DevExpress.Persistent.Validation.CustomFormatValidationMessageEventArgs.

Remarks

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