View.ErrorMessages Property
In This Article
Provides access to the current View‘s message collection.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
#Property Value
Type | Description |
---|---|
DevExpress. |
An Error |
#Remarks
Each message contains an image and text associated with a specific property name. For instance, the following code adds a message to the Subject property.
View.ErrorMessages.AddMessage(
"Subject",
View.CurrentObject,
"Specifies the task subject",
ImageLoader.Instance.GetImageInfo("Action_AboutInfo")
);
The result in an ASP.NET Web Forms and WinForms application is demonstrated below.
The ErrorMessages property is used by the Validation Module‘s ResultsHighlightController (see Built-in Controllers and Actions in Extra Modules).
See Also