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

Provides the cell coordinates and value used by the CellValueNeeded and CellValuePushed events.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewCellValueEventArgs : EventArgs

Inheritance: objectEventArgsGridViewCellValueEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for a cell identified by its row and column objects.

C#
public GridViewCellValueEventArgs(GridViewRowInfo rowInfo, GridViewColumn column)
Parameters:rowInfoGridViewRowInfo

The row containing the cell.

columnGridViewColumn

The column containing the cell.

Exceptions: ArgumentNullException

Either rowInfo or column is null.

Initializes a new instance of the class.

C#
public GridViewCellValueEventArgs(int columnIndex, int rowIndex)
Parameters:columnIndexint

The index of the column containing the cell that the event occurs for.

rowIndexint

The index of the row containing the cell that the event occurs for.

Exceptions: ArgumentOutOfRangeException

columnIndex is less than -1.-or-rowIndex is less than -1.

Properties

Gets the cell column.

C#
public GridViewColumn Column { get; }

Gets a value indicating the column index of the cell that the event occurs for.

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

The index of the column containing the cell that the event occurs for.

Gets a value indicating the row index of the cell that the event occurs for.

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

The index of the row containing the cell that the event occurs for.

Gets the cell row.

C#
public GridViewRowInfo RowInfo { get; }

Gets or sets the value associated with the virtual cell operation.

C#
public object Value { get; set; }
Property Value:

For CellValueNeeded, set this to supply the requested value; for CellValuePushed, it contains the value to store.