ErrorType Enum
Enumerates error icon types.
Namespace: DevExpress.XtraEditors.DXErrorProvider
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
#Members
Name | Description |
---|---|
None
|
Indicates that no error is associated with an editor or a cell. |
Default
|
The default error icon: The DXError |
Information
|
The ‘Information’ icon: |
Warning
|
The ‘Warning’ icon: |
Critical
|
The ‘Critical Error’ icon: |
User1
|
A user-defined icon to be provided via the DXError |
User2
|
A user-defined icon to be provided via the DXError |
User3
|
A user-defined icon to be provided via the DXError |
User4
|
A user-defined icon to be provided via the DXError |
User5
|
A user-defined icon to be provided via the DXError |
User6
|
A user-defined icon to be provided via the DXError |
User7
|
A user-defined icon to be provided via the DXError |
User8
|
A user-defined icon to be provided via the DXError |
User9
|
A user-defined icon to be provided via the DXError |
#Related API Members
The following properties accept/return ErrorType values:
Library | Related API Members |
---|---|
Cross-Platform Class Library | Error |
WPF Controls | Base |
Editing |
|
Validate |
|
Validation |
#Remarks
These enumeration values are used to indicate error types in multiple cases. For example, the DXErrorProvider component allows you to set the error text and error icon type for an editor via the DXErrorProvider.SetError method. As a result, the editor will display a corresponding error icon. Hovering over the icon will display the assigned error text.
You can override default error icons that correspond to the ErrorType values by handling the DXErrorProvider.GetErrorIcon event. This event is raised before an error icon is displayed within an editor. Note that the DXErrorProvider.GetErrorIcon event is not raised if an error icon of type ErrorType.Default is assigned to the editor