wpf-devexpress-dot-xpf-dot-editors-dot-validationeventargs-8e636dc1.md
Gets or sets the error icon type.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public ErrorType ErrorType { get; set; }
Public Property ErrorType As ErrorType
| Type | Description |
|---|---|
| ErrorType |
One of the ErrorType enumeration values.
|
Available values:
Show 14 items
| Name | Description |
|---|---|
| None |
Indicates that no error is associated with an editor or a cell.
| | Default |
The default error icon:
The DXErrorProvider.GetErrorIcon event is not raised when an error of the Default type is assigned to an editor.
| | Information |
The ‘Information’ icon:
| | Warning |
The ‘Warning’ icon:
| | Critical |
The ‘Critical Error’ icon:
| | User1 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User2 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User3 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User4 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User5 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User6 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User7 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User8 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
| | User9 |
A user-defined icon to be provided via the DXErrorProvider.GetErrorIcon event.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ErrorType property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-data-grid-validate-cell-editors/CS/ValidateCell_CodeBehind/MainWindow.xaml.cs#L37
e.IsValid = false;
e.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical;
e.ErrorContent = discount < 0
wpf-data-grid-validate-cell-editors/VB/ValidateCell_CodeBehind/MainWindow.xaml.vb#L42
e.IsValid = False
e.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical
e.ErrorContent = If(discount < 0, $"The price cannot be greater than {cellValue}", $"The discount cannot be greater than 30% ({cellValue * 0.7}). Please correct the price.")
See Also