Back to Devexpress

PropertyEditor.ErrorMessage Property

expressappframework-devexpress-dot-expressapp-dot-editors-dot-propertyeditor-d2e1db95.md

latest2.1 KB
Original Source

PropertyEditor.ErrorMessage Property

Specifies the message about validation rules broken because of the current Property Editor’s bound property.

Namespace : DevExpress.ExpressApp.Editors

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public virtual string ErrorMessage { get; set; }
vb
Public Overridable Property ErrorMessage As String

Property Value

TypeDescription
String

A string value representing the text shown in the Property Editor’s tooltip when a validation rule is broken.

|

Remarks

Validation rules can be applied to a business class. When these rules are broken, the ErrorMessage property of the Property Editors that are bound to the failed properties is set to the value of the RuleMessageTemplate specified for these rules. The Property Editor whose ErrorMessage property value is not empty is highlighted by an Error image, and the tooltip shows the property’s value.

Generally, you do not need to use this property. Although, you may use it as a custom feature for the Validation System, or other system. Note that the custom feature should not impede the Validation feature.

See Also

ErrorMessages

PropertyEditor Class

PropertyEditor Members

DevExpress.ExpressApp.Editors Namespace