Interface
IGridBehavior

This interface defines methods that can intercept the keyboard and mouse events from RadGridView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public interface IGridBehavior

Properties

GridControl

The RadGridView associated with this navigator

Declaration

cs-api-definition
RadGridView GridControl { get; }

Property Value

RadGridView

GridViewElement

The RadGridView associated with this navigator

Declaration

cs-api-definition
RadGridViewElement GridViewElement { get; }

Property Value

RadGridViewElement

Methods

Initialize(RadGridViewElement)

Initializes the IGridBehavior with the specified RadGridViewElement

Declaration

cs-api-definition
void Initialize(RadGridViewElement gridRootElement)

Parameters

gridRootElement

RadGridViewElement

The RadGridViewElement to associate with this object

OnClick(EventArgs)

Occurs when the RadGridView is clicked.

Declaration

cs-api-definition
bool OnClick(EventArgs e)

Parameters

e

EventArgs

Type: System.EventArgs

Returns

bool

Returns true if the event is processed

OnContextMenu(MouseEventArgs)

Occurs when the context menu of the RadGridView needs to be shown

Declaration

cs-api-definition
bool OnContextMenu(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnDoubleClick(EventArgs)

Occurs when the RadGridView is double-clicked.

Declaration

cs-api-definition
bool OnDoubleClick(EventArgs e)

Parameters

e

EventArgs

Type: System.EventArgs

Returns

bool

Returns true if the event is processed

OnMouseDoubleClick(MouseEventArgs)

Occurs when the RadGridView is double clicked by the mouse.

Declaration

cs-api-definition
bool OnMouseDoubleClick(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnMouseDown(MouseEventArgs)

Occurs when the mouse pointer is over the RadGridView and a mouse button is pressed.

Declaration

cs-api-definition
bool OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnMouseEnter(EventArgs)

Occurs when the mouse pointer enters the RadGridView.

Declaration

cs-api-definition
bool OnMouseEnter(EventArgs e)

Parameters

e

EventArgs

Type: System.EventArgs

Returns

bool

Returns true if the event is processed

OnMouseLeave(EventArgs)

Occurs when the mouse pointer leaves the RadGridView.

Declaration

cs-api-definition
bool OnMouseLeave(EventArgs e)

Parameters

e

EventArgs

Type: System.EventArgs

Returns

bool

Returns true if the event is processed

OnMouseMove(MouseEventArgs)

Occurs when the mouse pointer is moved over the RadGridView.

Declaration

cs-api-definition
bool OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnMouseUp(MouseEventArgs)

Occurs when the mouse pointer is over the RadGridView and a mouse button is released.

Declaration

cs-api-definition
bool OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnMouseWheel(MouseEventArgs)

Occurs when the mouse wheel moves while the RadGridView has focus.

Declaration

cs-api-definition
bool OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessKey(KeyEventArgs)

Processes key events in RadGridView.

Declaration

cs-api-definition
bool ProcessKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessKeyDown(KeyEventArgs)

Processes key down events in RadGridView.

Declaration

cs-api-definition
bool ProcessKeyDown(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessKeyPress(KeyPressEventArgs)

Processes key press events in RadGridView.

Declaration

cs-api-definition
bool ProcessKeyPress(KeyPressEventArgs keys)

Parameters

keys

KeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessKeyUp(KeyEventArgs)

Processes key up events in RadGridView.

Declaration

cs-api-definition
bool ProcessKeyUp(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed