New to Telerik UI for WinForms? Start a free 30-day trial

Provides data for the DataError event.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewDataErrorEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsGridViewDataErrorEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes a new instance of the RadGridViewDataErrorEventArgs.

C#
public GridViewDataErrorEventArgs(Exception exception, int columnIndex, int rowIndex, GridViewDataErrorContexts context)
Parameters:exceptionException

The exception reported by the grid.

columnIndexint

The column index associated with the error, or -1 when no cell applies.

rowIndexint

The row index associated with the error, or -1 when no row applies.

contextGridViewDataErrorContexts

The data operation context in which the error occurred.

Properties

Gets the column index of the cell that the event occurs for.

C#
public int ColumnIndex { get; }
Property Value:

The column index of the that the event occurs for.

Gets details about the state of the RadGridView when the error occurred.

C#
public GridViewDataErrorContexts Context { get; }

Gets the exception that represents the error.

C#
public Exception Exception { get; }

Gets the row index of the cell that the event occurs for.

C#
public int RowIndex { get; }
Property Value:

The row index of the that the event occurs for.

Gets or sets a value indicating whether to throw the exception after the RadGridViewDataErrorEventHandler delegate is finished with it.

C#
public bool ThrowException { get; set; }
Exceptions: ArgumentException

The value is set to true when Exception is null.