Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXErrorProvider.GetError(Control) Method

Gets an error text associated with the specified control.

Namespace: DevExpress.XtraEditors.DXErrorProvider

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue("")]
public string GetError(
    Control control
)

#Parameters

Name Type Description
control Control

A control whose error text is returned.

#Returns

Type Default Description
String String.Empty

A String value that represents the error text associated with the specified control.

#Remarks

An error can be associated with a control explicitly, using the DXErrorProvider.SetError method or indirectly, on the data source level. See the DXErrorProvider.DataSource topic, for information on handling errors on the data source level.

See Also