Class
GridRowBehavior

Represents grid row behavior for managing keyboard and mouse input.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridRowBehavior : GridBehaviorImpl, IGridBehavior, IDisposable

Inheritance: objectGridBehaviorImplGridRowBehavior

Derived Classes: GridDataRowBehaviorGridDetailViewRowBehaviorGridFilterRowBehaviorGridGroupRowBehaviorGridHeaderRowBehaviorGridNewRowBehaviorGridSearchRowBehavior

Implements: IDisposableIGridBehavior

Inherited Members GridBehaviorImpl.Initialize(RadGridViewElement)GridBehaviorImpl.GridViewElementGridBehaviorImpl.GridControl

Constructors

GridRowBehavior()

Initializes a new instance of the BaseGridBehavior class.

Declaration

cs-api-definition
public GridRowBehavior()

Properties

BeginEditMode

Gets the begin edit mode.

Declaration

cs-api-definition
protected RadGridViewBeginEditMode BeginEditMode { get; }

Property Value

RadGridViewBeginEditMode

The begin edit mode.

EditorManager

Gets the RadGridView's editor manager.

Declaration

cs-api-definition
protected GridViewEditManager EditorManager { get; }

Property Value

GridViewEditManager

The editor manager.

IsInEditMode

Gets a value indicating whether the grid is in edit mode.

Declaration

cs-api-definition
protected bool IsInEditMode { get; }

Property Value

bool

true if this grid is in edit mode; otherwise, false.

IsPressedControl

Gets a value indicating whether this instance is pressed control.

Declaration

cs-api-definition
protected bool IsPressedControl { get; }

Property Value

bool

true if this instance is pressed control; otherwise, false.

IsPressedShift

Gets a value indicating whether this instance is pressed shift.

Declaration

cs-api-definition
protected bool IsPressedShift { get; }

Property Value

bool

true if this instance is pressed shift; otherwise, false.

MasterTemplate

Gets the root template.

Declaration

cs-api-definition
protected MasterGridViewTemplate MasterTemplate { get; }

Property Value

MasterGridViewTemplate

The root template.

MouseDownLocation

Gets the mouse down location.

Declaration

cs-api-definition
protected Point MouseDownLocation { get; }

Property Value

Point

The mouse down location.

Navigator

Gets the navigator.

Declaration

cs-api-definition
protected IGridNavigator Navigator { get; }

Property Value

IGridNavigator

The navigator.

RootGridBehavior

Gets the root grid behavior.

Declaration

cs-api-definition
protected BaseGridBehavior RootGridBehavior { get; }

Property Value

BaseGridBehavior

The root grid behavior.

RowToResize

Gets the row to resize.

Declaration

cs-api-definition
protected GridRowElement RowToResize { get; }

Property Value

GridRowElement

The row to resize.

RowToResizeInitialHeight

Gets the initial height of the row to resize.

Declaration

cs-api-definition
protected int RowToResizeInitialHeight { get; }

Property Value

int

The initial height of the row to resize.

Methods

CanEnterEditMode(GridViewRowInfo)

Determines whether this instance [can enter edit mode] the specified row info.

Declaration

cs-api-definition
protected virtual bool CanEnterEditMode(GridViewRowInfo rowInfo)

Parameters

rowInfo

GridViewRowInfo

The row info.

Returns

bool

true if this instance [can enter edit mode] the specified row info; otherwise, false.

CanResizeRow(Point, GridRowElement)

Determines whether this instance [can resize row] the specified current location.

Declaration

cs-api-definition
public virtual bool CanResizeRow(Point currentLocation, GridRowElement rowElement)

Parameters

currentLocation

Point

The current location.

rowElement

GridRowElement

The row element.

Returns

bool

true if this instance [can resize row] the specified current location; otherwise, false.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetCellAtPoint(Point)

Gets the cell at point.

Declaration

cs-api-definition
protected GridCellElement GetCellAtPoint(Point point)

Parameters

point

Point

The point.

Returns

GridCellElement

GetExpanderPrimitive(Point)

Gets the expander primitive.

Declaration

cs-api-definition
protected GridExpanderItem GetExpanderPrimitive(Point point)

Parameters

point

Point

The point.

Returns

GridExpanderItem

GetKeyboardNavigationContext(KeyEventArgs)

Gets the keyboard navigation context.

Declaration

cs-api-definition
protected virtual GridNavigationContext GetKeyboardNavigationContext(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyEventArgs instance containing the event data.

Returns

GridNavigationContext

GetMouseNavigationContext(MouseEventArgs)

Gets the mouse navigation context.

Declaration

cs-api-definition
protected virtual GridNavigationContext GetMouseNavigationContext(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

GridNavigationContext

GetRowAtPoint(Point)

Gets the row at point.

Declaration

cs-api-definition
protected GridRowElement GetRowAtPoint(Point point)

Parameters

point

Point

The point.

Returns

GridRowElement

GetTableElementAtPoint(Point)

Gets the table element at point.

Declaration

cs-api-definition
protected GridTableElement GetTableElementAtPoint(Point point)

Parameters

point

Point

The point.

Returns

GridTableElement

IsOnFirstCell()

Determines whether [is on first cell].

Declaration

cs-api-definition
protected bool IsOnFirstCell()

Returns

bool

true if [is on first cell]; otherwise, false.

IsOnLastCell()

Determines whether [is on last cell].

Declaration

cs-api-definition
protected bool IsOnLastCell()

Returns

bool

true if [is on last cell]; otherwise, false.

OnClick(EventArgs)

Occurs when the RadGridView is clicked.

Declaration

cs-api-definition
public override bool OnClick(EventArgs e)

Parameters

e

EventArgs

Type: System.EventArgs

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.OnClick(EventArgs)

OnContextMenu(MouseEventArgs)

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

Declaration

cs-api-definition
public override bool OnContextMenu(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.OnContextMenu(MouseEventArgs)

OnDoubleClick(EventArgs)

Occurs when the RadGridView is double-clicked.

Declaration

cs-api-definition
public override bool OnDoubleClick(EventArgs e)

Parameters

e

EventArgs

Type: System.EventArgs

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.OnDoubleClick(EventArgs)

OnMouseDoubleClick(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public override bool OnMouseDoubleClick(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

Overrides GridBehaviorImpl.OnMouseDoubleClick(MouseEventArgs)

OnMouseDown(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public override bool OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

Overrides GridBehaviorImpl.OnMouseDown(MouseEventArgs)

OnMouseDownLeft(MouseEventArgs)

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

Declaration

cs-api-definition
protected virtual bool OnMouseDownLeft(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnMouseDownRight(MouseEventArgs)

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

Declaration

cs-api-definition
protected virtual bool OnMouseDownRight(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

OnMouseEnter(EventArgs)

Raises the event.

Declaration

cs-api-definition
public override bool OnMouseEnter(EventArgs e)

Parameters

e

EventArgs

The EventArgs instance containing the event data.

Returns

bool

Overrides GridBehaviorImpl.OnMouseEnter(EventArgs)

OnMouseLeave(EventArgs)

Raises the event.

Declaration

cs-api-definition
public override bool OnMouseLeave(EventArgs e)

Parameters

e

EventArgs

The EventArgs instance containing the event data.

Returns

bool

Overrides GridBehaviorImpl.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Occurs when the mouse pointer is moved over the RadGridView.

Declaration

cs-api-definition
public override bool OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public override bool OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

Overrides GridBehaviorImpl.OnMouseUp(MouseEventArgs)

OnMouseUpLeft(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnMouseUpLeft(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

OnMouseUpRight(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnMouseUpRight(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

OnMouseWheel(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public override bool OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

Overrides GridBehaviorImpl.OnMouseWheel(MouseEventArgs)

ProcessAddKey(KeyEventArgs)

Processes the Add key

Declaration

cs-api-definition
protected virtual bool ProcessAddKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessAlphaNumericKey(KeyPressEventArgs)

Processes the alpha-numeric keys

Declaration

cs-api-definition
protected virtual bool ProcessAlphaNumericKey(KeyPressEventArgs keys)

Parameters

keys

KeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessDeleteKey(KeyEventArgs)

Processes the Delete key

Declaration

cs-api-definition
protected virtual bool ProcessDeleteKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessDownKey(KeyEventArgs)

Processes the Down key

Declaration

cs-api-definition
protected virtual bool ProcessDownKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessEndKey(KeyEventArgs)

Processes the End key

Declaration

cs-api-definition
protected virtual bool ProcessEndKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessEnterKey(KeyEventArgs)

Processes the Enter key

Declaration

cs-api-definition
protected virtual bool ProcessEnterKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessEscapeKey(KeyEventArgs)

Processes the Escape key

Declaration

cs-api-definition
protected virtual bool ProcessEscapeKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessF2Key(KeyEventArgs)

Processes the F2 key

Declaration

cs-api-definition
protected virtual bool ProcessF2Key(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessHomeKey(KeyEventArgs)

Processes the Home key

Declaration

cs-api-definition
protected virtual bool ProcessHomeKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessInsertKey(KeyEventArgs)

Processes the Insert key

Declaration

cs-api-definition
protected virtual bool ProcessInsertKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs 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
public override bool ProcessKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.ProcessKey(KeyEventArgs)

ProcessKeyDown(KeyEventArgs)

Processes key down events in RadGridView.

Declaration

cs-api-definition
public override bool ProcessKeyDown(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.ProcessKeyDown(KeyEventArgs)

ProcessKeyPress(KeyPressEventArgs)

Processes key press events in RadGridView.

Declaration

cs-api-definition
public override bool ProcessKeyPress(KeyPressEventArgs keys)

Parameters

keys

KeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.ProcessKeyPress(KeyPressEventArgs)

ProcessKeyUp(KeyEventArgs)

Processes key up events in RadGridView.

Declaration

cs-api-definition
public override bool ProcessKeyUp(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

Overrides GridBehaviorImpl.ProcessKeyUp(KeyEventArgs)

ProcessLeftKey(KeyEventArgs)

Processes the Left key

Declaration

cs-api-definition
protected virtual bool ProcessLeftKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessMouseSelection(Point, GridCellElement)

Processes the mouse selection.

Declaration

cs-api-definition
protected virtual bool ProcessMouseSelection(Point mousePosition, GridCellElement currentCell)

Parameters

mousePosition

Point

The mouse position.

currentCell

GridCellElement

The current cell.

Returns

bool

ProcessPageDownKey(KeyEventArgs)

Processes the PageDown key

Declaration

cs-api-definition
protected virtual bool ProcessPageDownKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessPageUpKey(KeyEventArgs)

Processes the PageUp key

Declaration

cs-api-definition
protected virtual bool ProcessPageUpKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessRightKey(KeyEventArgs)

Processes the Right key

Declaration

cs-api-definition
protected virtual bool ProcessRightKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessSpaceKey(KeyEventArgs)

Processes the Space key

Declaration

cs-api-definition
protected virtual bool ProcessSpaceKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessSubtractKey(KeyEventArgs)

Processes the Subtract key

Declaration

cs-api-definition
protected virtual bool ProcessSubtractKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessTabKey(KeyEventArgs)

Processes the Tab key

Declaration

cs-api-definition
protected virtual bool ProcessTabKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessUnhandledKeys(KeyEventArgs)

Processes keys that are not handled by ProcessKey methoes

Declaration

cs-api-definition
protected bool ProcessUnhandledKeys(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ProcessUpKey(KeyEventArgs)

Processes the Up key

Declaration

cs-api-definition
protected virtual bool ProcessUpKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

ResetControlCursor()

Resets the control cursor.

Declaration

cs-api-definition
protected void ResetControlCursor()

ResetFieldValues()

Resets the field values.

Declaration

cs-api-definition
protected virtual bool ResetFieldValues()

Returns

bool

ResizeRow(Point)

Resizes the row.

Declaration

cs-api-definition
protected virtual void ResizeRow(Point currentLocation)

Parameters

currentLocation

Point

The current location.

SelectNextControl(bool)

Selects the next control.

Declaration

cs-api-definition
protected virtual bool SelectNextControl(bool forward)

Parameters

forward

bool

if set to true [forward].

Returns

bool

SelectPositionOnMouseDownLeft(MouseEventArgs, GridRowElement, GridCellElement)

Selects the position on mouse down left.

Declaration

cs-api-definition
protected virtual bool SelectPositionOnMouseDownLeft(MouseEventArgs e, GridRowElement rowElement, GridCellElement cellElement)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

rowElement

GridRowElement

The row element.

cellElement

GridCellElement

The cell element.

Returns

bool

ShowSizeNSCursort(Point)

Shows the size NS cursort.

Declaration

cs-api-definition
protected virtual bool ShowSizeNSCursort(Point currentLocation)

Parameters

currentLocation

Point

The current location.

Returns

bool

ValidateOnUserInput(MouseEventArgs)

Validates the on user input.

Declaration

cs-api-definition
protected virtual bool ValidateOnUserInput(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

In this article
DefinitionConstructorsGridRowBehavior()PropertiesBeginEditModeEditorManagerIsInEditModeIsPressedControlIsPressedShiftMasterTemplateMouseDownLocationNavigatorRootGridBehaviorRowToResizeRowToResizeInitialHeightMethodsCanEnterEditMode(GridViewRowInfo)CanResizeRow(Point, GridRowElement)Dispose()GetCellAtPoint(Point)GetExpanderPrimitive(Point)GetKeyboardNavigationContext(KeyEventArgs)GetMouseNavigationContext(MouseEventArgs)GetRowAtPoint(Point)GetTableElementAtPoint(Point)IsOnFirstCell()IsOnLastCell()OnClick(EventArgs)OnContextMenu(MouseEventArgs)OnDoubleClick(EventArgs)OnMouseDoubleClick(MouseEventArgs)OnMouseDown(MouseEventArgs)OnMouseDownLeft(MouseEventArgs)OnMouseDownRight(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseUpLeft(MouseEventArgs)OnMouseUpRight(MouseEventArgs)OnMouseWheel(MouseEventArgs)ProcessAddKey(KeyEventArgs)ProcessAlphaNumericKey(KeyPressEventArgs)ProcessDeleteKey(KeyEventArgs)ProcessDownKey(KeyEventArgs)ProcessEndKey(KeyEventArgs)ProcessEnterKey(KeyEventArgs)ProcessEscapeKey(KeyEventArgs)ProcessF2Key(KeyEventArgs)ProcessHomeKey(KeyEventArgs)ProcessInsertKey(KeyEventArgs)ProcessKey(KeyEventArgs)ProcessKeyDown(KeyEventArgs)ProcessKeyPress(KeyPressEventArgs)ProcessKeyUp(KeyEventArgs)ProcessLeftKey(KeyEventArgs)ProcessMouseSelection(Point, GridCellElement)ProcessPageDownKey(KeyEventArgs)ProcessPageUpKey(KeyEventArgs)ProcessRightKey(KeyEventArgs)ProcessSpaceKey(KeyEventArgs)ProcessSubtractKey(KeyEventArgs)ProcessTabKey(KeyEventArgs)ProcessUnhandledKeys(KeyEventArgs)ProcessUpKey(KeyEventArgs)ResetControlCursor()ResetFieldValues()ResizeRow(Point)SelectNextControl(bool)SelectPositionOnMouseDownLeft(MouseEventArgs, GridRowElement, GridCellElement)ShowSizeNSCursort(Point)ValidateOnUserInput(MouseEventArgs)
Not finding the help you need?
Contact Support