Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

View.ErrorMessages Property

Provides access to the current View‘s message collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public ErrorMessages ErrorMessages { get; }

#Property Value

Type Description
DevExpress.ExpressApp.Utils.ErrorMessages

An ErrorMessages object which is used to access the messages.

#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.

ErrorMessages

The ErrorMessages property is used by the Validation Module‘s ResultsHighlightController (see Built-in Controllers and Actions in Extra Modules).

See Also