Skip to main content
A newer version of this page is available. .

ErrorType Enum

Enumerates error icon types.

Namespace: DevExpress.XtraEditors.DXErrorProvider

Assembly: DevExpress.Data.v18.2.dll

Declaration

public enum ErrorType

Members

Name Description
None

Indicates that no error is associated with an editor or a cell.

Default

The default error icon specified by the BaseEdit.ErrorIcon property: ErrorType_Critical

The DXErrorProvider.GetErrorIcon event is not raised when an error of the Default type is assigned to an editor.

Information

The ‘Information’ icon: ErrorType_Information

Warning

The ‘Warning’ icon: ErrorType_Warning

Critical

The ‘Critical Error’ icon: ErorType_Critical

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.

Related API Members

The following properties accept/return ErrorType values:

Library Related API Members
Cross-Platform Class Library ErrorInfo.ErrorType
WPF Controls BaseValidationError.ErrorType
ValidateCellEventArgs.ErrorType
ValidationEventArgs.ErrorType

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

See Also