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

Represents grid row behavior for managing keyboard and mouse input.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridRowBehavior : GridBehaviorImpl, IGridBehavior, IDisposable

Inheritance: objectGridBehaviorImplGridRowBehavior

Derived Classes: GridDataRowBehaviorGridDetailViewRowBehaviorGridFilterRowBehaviorGridGroupRowBehaviorGridHeaderRowBehaviorGridNewRowBehaviorGridSearchRowBehavior...

Implements: IDisposableIGridBehavior

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

Constructors

Initializes a new instance of the BaseGridBehavior class.

C#
public GridRowBehavior()

Properties

Gets the begin edit mode.

C#
protected RadGridViewBeginEditMode BeginEditMode { get; }
Property Value:

The begin edit mode.

Gets the RadGridView's editor manager.

C#
protected GridViewEditManager EditorManager { get; }
Property Value:

The editor manager.

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

C#
protected bool IsInEditMode { get; }
Property Value:

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

Gets a value indicating whether this instance is pressed control.

C#
protected bool IsPressedControl { get; }
Property Value:

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

Gets a value indicating whether this instance is pressed shift.

C#
protected bool IsPressedShift { get; }
Property Value:

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

Gets the root template.

C#
protected MasterGridViewTemplate MasterTemplate { get; }
Property Value:

The root template.

Gets the mouse down location.

C#
protected Point MouseDownLocation { get; }
Property Value:

The mouse down location.

Gets the navigator.

C#
protected IGridNavigator Navigator { get; }
Property Value:

The navigator.

Gets the root grid behavior.

C#
protected BaseGridBehavior RootGridBehavior { get; }
Property Value:

The root grid behavior.

Gets the row to resize.

C#
protected GridRowElement RowToResize { get; }
Property Value:

The row to resize.

Gets the initial height of the row to resize.

C#
protected int RowToResizeInitialHeight { get; }
Property Value:

The initial height of the row to resize.

Methods

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

C#
protected virtual bool CanEnterEditMode(GridViewRowInfo rowInfo)
Parameters:rowInfoGridViewRowInfo

The row info.

Returns:

bool

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

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

C#
public virtual bool CanResizeRow(Point currentLocation, GridRowElement rowElement)
Parameters:currentLocationPoint

The current location.

rowElementGridRowElement

The row element.

Returns:

bool

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

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

C#
public void Dispose()

Implements: IDisposable.Dispose()

Gets the cell at point.

C#
protected GridCellElement GetCellAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

GridCellElement

Gets the expander primitive.

C#
protected GridExpanderItem GetExpanderPrimitive(Point point)
Parameters:pointPoint

The point.

Returns:

GridExpanderItem

Gets the keyboard navigation context.

C#
protected virtual GridNavigationContext GetKeyboardNavigationContext(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyEventArgs instance containing the event data.

Returns:

GridNavigationContext

Gets the mouse navigation context.

C#
protected virtual GridNavigationContext GetMouseNavigationContext(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

GridNavigationContext

Gets the row at point.

C#
protected GridRowElement GetRowAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

GridRowElement

Gets the table element at point.

C#
protected GridTableElement GetTableElementAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

GridTableElement

Determines whether [is on first cell].

C#
protected bool IsOnFirstCell()
Returns:

bool

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

Determines whether [is on last cell].

C#
protected bool IsOnLastCell()
Returns:

bool

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

Occurs when the RadGridView is clicked.

C#
public override bool OnClick(EventArgs e)
Parameters:eEventArgs

Type: System.EventArgs

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.OnClick(EventArgs)

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

C#
public override bool OnContextMenu(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.OnContextMenu(MouseEventArgs)

Occurs when the RadGridView is double-clicked.

C#
public override bool OnDoubleClick(EventArgs e)
Parameters:eEventArgs

Type: System.EventArgs

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.OnDoubleClick(EventArgs)

Raises the event.

C#
public override bool OnMouseDoubleClick(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: GridBehaviorImpl.OnMouseDoubleClick(MouseEventArgs)

Raises the event.

C#
public override bool OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: GridBehaviorImpl.OnMouseDown(MouseEventArgs)

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

C#
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

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

C#
protected virtual bool OnMouseDownRight(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Raises the event.

C#
public override bool OnMouseEnter(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Returns:

bool

Overrides: GridBehaviorImpl.OnMouseEnter(EventArgs)

Raises the event.

C#
public override bool OnMouseLeave(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Returns:

bool

Overrides: GridBehaviorImpl.OnMouseLeave(EventArgs)

Occurs when the mouse pointer is moved over the RadGridView.

C#
public override bool OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.OnMouseMove(MouseEventArgs)

Raises the event.

C#
public override bool OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: GridBehaviorImpl.OnMouseUp(MouseEventArgs)

Raises the event.

C#
protected virtual bool OnMouseUpLeft(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual bool OnMouseUpRight(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
public override bool OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: GridBehaviorImpl.OnMouseWheel(MouseEventArgs)

Processes the Add key

C#
protected virtual bool ProcessAddKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the alpha-numeric keys

C#
protected virtual bool ProcessAlphaNumericKey(KeyPressEventArgs keys)
Parameters:keysKeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Delete key

C#
protected virtual bool ProcessDeleteKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Down key

C#
protected virtual bool ProcessDownKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the End key

C#
protected virtual bool ProcessEndKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Enter key

C#
protected virtual bool ProcessEnterKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Escape key

C#
protected virtual bool ProcessEscapeKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the F2 key

C#
protected virtual bool ProcessF2Key(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Home key

C#
protected virtual bool ProcessHomeKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Insert key

C#
protected virtual bool ProcessInsertKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes key events in RadGridView.

C#
public override bool ProcessKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.ProcessKey(KeyEventArgs)

Processes key down events in RadGridView.

C#
public override bool ProcessKeyDown(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.ProcessKeyDown(KeyEventArgs)

Processes key press events in RadGridView.

C#
public override bool ProcessKeyPress(KeyPressEventArgs keys)
Parameters:keysKeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.ProcessKeyPress(KeyPressEventArgs)

Processes key up events in RadGridView.

C#
public override bool ProcessKeyUp(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Overrides: GridBehaviorImpl.ProcessKeyUp(KeyEventArgs)

Processes the Left key

C#
protected virtual bool ProcessLeftKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the mouse selection.

C#
protected virtual bool ProcessMouseSelection(Point mousePosition, GridCellElement currentCell)
Parameters:mousePositionPoint

The mouse position.

currentCellGridCellElement

The current cell.

Returns:

bool

Processes the PageDown key

C#
protected virtual bool ProcessPageDownKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the PageUp key

C#
protected virtual bool ProcessPageUpKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Right key

C#
protected virtual bool ProcessRightKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Space key

C#
protected virtual bool ProcessSpaceKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Subtract key

C#
protected virtual bool ProcessSubtractKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Tab key

C#
protected virtual bool ProcessTabKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes keys that are not handled by ProcessKey methoes

C#
protected bool ProcessUnhandledKeys(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes the Up key

C#
protected virtual bool ProcessUpKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Resets the control cursor.

C#
protected void ResetControlCursor()

Resets the field values.

C#
protected virtual bool ResetFieldValues()
Returns:

bool

Resizes the row.

C#
protected virtual void ResizeRow(Point currentLocation)
Parameters:currentLocationPoint

The current location.

Selects the next control.

C#
protected virtual bool SelectNextControl(bool forward)
Parameters:forwardbool

if set to true [forward].

Returns:

bool

Selects the position on mouse down left.

C#
protected virtual bool SelectPositionOnMouseDownLeft(MouseEventArgs e, GridRowElement rowElement, GridCellElement cellElement)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

rowElementGridRowElement

The row element.

cellElementGridCellElement

The cell element.

Returns:

bool

Shows the size NS cursort.

C#
protected virtual bool ShowSizeNSCursort(Point currentLocation)
Parameters:currentLocationPoint

The current location.

Returns:

bool

Validates the on user input.

C#
protected virtual bool ValidateOnUserInput(MouseEventArgs e)
Parameters:eMouseEventArgs

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