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

DXErrorProvider.GetErrorType(Control) Method

Gets the type of error associated with the specified control.

Namespace: DevExpress.XtraEditors.DXErrorProvider

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DefaultValue(ErrorType.None)]
public ErrorType GetErrorType(
    Control control
)

Parameters

Name Type Description
control Control

The control whose error type should be obtained.

Returns

Type Default Description
ErrorType **None**

A ErrorType value that specifies the error type.

Remarks

Use the GetErrorType method to return the error type associated with a control. An error of a specific error type can be associated with a control explicitly, using the DXErrorProvider.SetError and DXErrorProvider.SetErrorType methods or indirectly - on the data source level. See the DXErrorProvider.DataSource topic for information on handling errors on the data source level.

See Also