New to Telerik UI for WinFormsStart 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:exceptionExceptioncolumnIndexintrowIndexintcontextGridViewDataErrorContexts

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; }