corelibraries-devexpress-dot-export-dot-xl-dot-xldatavalidation-70b7bfcf.md
Gets or sets the caption of the error alert window.
Namespace : DevExpress.Export.Xl
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public string ErrorTitle { get; set; }
Public Property ErrorTitle As String
| Type | Description |
|---|---|
| String |
A String that is the caption text.
|
Set the XlDataValidation.ShowErrorMessage property to true to show the error message. Use the XlDataValidation.ErrorMessage property to specify the message to display in the dialog. The XlDataValidation.ErrorStyle property specifies the type of the alert window.
The code sample below shows how to show the warning message when the entered data in invalid:
// Display the error message.
validation.ErrorMessage = "The salary amount must be between 600$ and 2000$.";
validation.ErrorTitle = "Warning";
validation.ErrorStyle = XlDataValidationErrorStyle.Warning;
validation.ShowErrorMessage = true;
' Display the error message.
validation.ErrorMessage = "The salary amount must be between 600$ and 2000$."
validation.ErrorTitle = "Warning"
validation.ErrorStyle = XlDataValidationErrorStyle.Warning
validation.ShowErrorMessage = True
See Also