Skip to main content

InvalidRowExceptionEventArgs(Exception, String, Int32, Object) Constructor

Initializes a new instance of the InvalidRowExceptionEventArgs class with the specified settings.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public InvalidRowExceptionEventArgs(
    Exception except,
    string errorText,
    int rowHandle,
    object row
)

Parameters

Name Type Description
except Exception

A Exception object representing the exception which caused this event to be raised. This value is assigned to the ExceptionEventArgs.Exception property.

errorText String

A string value representing the error message box text. This value is assigned to the ExceptionEventArgs.ErrorText property.

rowHandle Int32

An integer value representing the handle of the row that failed validation. This value is assigned to the InvalidRowExceptionEventArgs.RowHandle property.

row Object

An object representing the row that failed validation. This value is assigned to the InvalidRowExceptionEventArgs.Row property.

Remarks

The constructor sets properties to the following initial values:

  • The DevExpress.XtraEditors.Controls.ExceptionEventArgs.WindowCaption property is set to “Error”.
  • The DevExpress.XtraEditors.Controls.ExceptionEventArgs.ExceptionMode property is set to DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError.

Other property values are specified by constructor parameters.

See Also