The requested page is not available for the requested platform. You are viewing the content for Default platform.

InvalidRowExceptionEventArgs Class

Provides data for the GridControlBase.InvalidRowException event.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.1.dll

Declaration

public class InvalidRowExceptionEventArgs :
    RowEventArgs,
    IInvalidRowExceptionEventArgs
Public Class InvalidRowExceptionEventArgs
    Inherits RowEventArgs
    Implements IInvalidRowExceptionEventArgs

Remarks

The GridControlBase.InvalidRowException event allows you to override the default error presentation. This event occurs after the GridControl.ValidateRow event (provided that the focused row's validation has failed).

The event parameter's InvalidRowExceptionEventArgs.ExceptionMode property allows you to specify the action performed in response to entering an invalid value. You can display a message box with an error description, suppress any action, throw an exception or discard new data and revert to an old value. The error description can be specified using the InvalidRowExceptionEventArgs.ErrorText property.

An exception that raised this event is returned by the InvalidRowExceptionEventArgs.Exception property.

To learn more, see Row Validation.

Inheritance

Object
EventArgs
RowEventArgs
InvalidRowExceptionEventArgs
See Also