DXErrorProvider Members

Provides error management for DevExpress bound and unbound editors.

Constructors

Name Description
DXErrorProvider() Initializes a new instance of the DXErrorProvider class with the default settings.
DXErrorProvider(IContainer) Initializes a new instance of the StyleController class with the specified container.
DXErrorProvider(ContainerControl) Initializes a new instance of the DXErrorProvider class with the specified control container.

Properties

Name Description
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
Container Gets the IContainer that contains the Component. Inherited from Component.
ContainerControl Gets or sets a control which owns the controls monitored for errors.
DataMember Gets or sets a data source member monitored for errors.
DataSource Gets or sets the data source to be monitored for errors.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
HasErrors Gets whether there is any error that is set via the DXErrorProvider's methods or on the data source level.
Site

Methods

Name Description
BindToDataAndErrors(Object, String) Sets the data source to be monitored for errors.
CanExtend(Object) Gets a value indicating whether a control can be extended.
ClearErrors() Visually clears all error icons that have been displayed by the current DXErrorProvider.
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose() Releases all resources used by the Component. Inherited from Component.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetControlsWithError() Gets a list of the controls with which errors are associated.
GetControlsWithError(ErrorType) Gets a list of the controls with which errors of the specified type are associated.
GetError(Control) Gets an error text associated with the specified control.
GetErrorIconInternal(ErrorType) static This method supports the internal infrastructure and is not intended to be used directly from your code.
GetErrorIconInternal(ErrorType, UserLookAndFeel, ScaleHelper) static
GetErrorType(Control) Gets the type of error associated with the specified control.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetIconAlignment(Control) Returns the alignment of the error icon associated with the specified control.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetSvgErrorIcon(String) static Creates an image from the specified manifest resource.
GetType() Gets the Type of the current instance. Inherited from Object.
HasErrorsOfType(ErrorType) Returns whether there is any error of the specified type.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RefreshControl(Control) Updates error information for the specified editor.
RefreshControls() Updates error information for all editors managed by the DXErrorProvider.
SetError(Control, String) Sets the default error icon next to a control. When a user hovers over this icon, a tooltip with an error message appears on-screen.
SetError(Control, String, ErrorType) Sets an error icon next to a control. When a user hovers over this icon, a tooltip with an error message appears on-screen.
SetErrorType(Control, ErrorType) Sets the type of error associated with the specified control.
SetIconAlignment(Control, ErrorIconAlignment) Specifies the alignment of an error icon for a control.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.
UpdateBinding() Updates the binding and display error information, to reflect errors that could have been set on the data store level.

Events

Name Description
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
GetErrorIcon static Allows you to provide custom error icons for editors.
See Also