New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for CellBeginEdit and RowValidating events.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewSelectionCancelEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsGridViewSelectionCancelEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes a new instance of the class.

C#
public GridViewSelectionCancelEventArgs(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

The GridViewRowInfo related with the cell.

columnGridViewColumn

The GridViewColumn related with the cell.

Initializes a new instance of the GridViewSelectionCancelEventArgs class.

C#
public GridViewSelectionCancelEventArgs(IEnumerable<GridViewRowInfo> rows, GridViewColumn column)
Parameters:rowsIEnumerable<GridViewRowInfo>

The rows.

columnGridViewColumn

The column.

Initializes a new instance of the GridViewSelectionCancelEventArgs class.

C#
public GridViewSelectionCancelEventArgs(IEnumerable<GridViewRowInfo> rows, int columnStarIndex, int columnEndIndex)
Parameters:rowsIEnumerable<GridViewRowInfo>

The rows.

columnStarIndexint

Index of the column star.

columnEndIndexint

End index of the column.

Properties

Gets the GridViewColumn related with the cell.

C#
public GridViewColumn Column { get; }

This values should be used when users use the Lasso selection and selection mode is CellSelection

C#
public int ColumnEndIndex { get; }

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

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

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

This values should be used when users use the Lasso selection and selection mode is CellSelection

C#
public int ColumnStartIndex { get; }

Gets the GridViewRowInfo related with the cell.

C#
public List<GridViewRowInfo> Rows { get; }