skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridRowBehavior

Represents grid row behavior for managing keyboard and mouse input.

Inheritance
System.Object
GridBehaviorImpl
GridRowBehavior
GridDataRowBehavior
GridDetailViewRowBehavior
GridFilterRowBehavior
GridGroupRowBehavior
GridHeaderRowBehavior
GridNewRowBehavior
GridSearchRowBehavior
Inherited Members
GridBehaviorImpl.Initialize(RadGridViewElement)
GridBehaviorImpl.GridViewElement
GridBehaviorImpl.GridControl
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll

Syntax

public class GridRowBehavior : GridBehaviorImpl, IGridBehavior, IDisposable

Constructors

GridRowBehavior()

Initializes a new instance of the BaseGridBehavior class.

Declaration
public GridRowBehavior()

Properties

BeginEditMode

Gets the begin edit mode.

Declaration
protected RadGridViewBeginEditMode BeginEditMode { get; }
Property Value
RadGridViewBeginEditMode

The begin edit mode.

EditorManager

Gets the RadGridView's editor manager.

Declaration
protected GridViewEditManager EditorManager { get; }
Property Value
GridViewEditManager

The editor manager.

IsInEditMode

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

Declaration
protected bool IsInEditMode { get; }
Property Value
System.Boolean

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

IsPressedControl

Gets a value indicating whether this instance is pressed control.

Declaration
protected bool IsPressedControl { get; }
Property Value
System.Boolean

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

IsPressedShift

Gets a value indicating whether this instance is pressed shift.

Declaration
protected bool IsPressedShift { get; }
Property Value
System.Boolean

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

MasterTemplate

Gets the root template.

Declaration
protected MasterGridViewTemplate MasterTemplate { get; }
Property Value
MasterGridViewTemplate

The root template.

MouseDownLocation

Gets the mouse down location.

Declaration
protected Point MouseDownLocation { get; }
Property Value
System.Drawing.Point

The mouse down location.

Navigator

Gets the navigator.

Declaration
protected IGridNavigator Navigator { get; }
Property Value
IGridNavigator

The navigator.

RootGridBehavior

Gets the root grid behavior.

Declaration
protected BaseGridBehavior RootGridBehavior { get; }
Property Value
BaseGridBehavior

The root grid behavior.

RowToResize

Gets the row to resize.

Declaration
protected GridRowElement RowToResize { get; }
Property Value
GridRowElement

The row to resize.

RowToResizeInitialHeight

Gets the initial height of the row to resize.

Declaration
protected int RowToResizeInitialHeight { get; }
Property Value
System.Int32

The initial height of the row to resize.

Methods

CanEnterEditMode(GridViewRowInfo)

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

Declaration
protected virtual bool CanEnterEditMode(GridViewRowInfo rowInfo)
Parameters
GridViewRowInfo rowInfo

The row info.

Returns
System.Boolean

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
public virtual bool CanResizeRow(Point currentLocation, GridRowElement rowElement)
Parameters
System.Drawing.Point currentLocation

The current location.

GridRowElement rowElement

The row element.

Returns
System.Boolean

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
public void Dispose()
Implements
System.IDisposable.Dispose()

GetCellAtPoint(Point)

Gets the cell at point.

Declaration
protected GridCellElement GetCellAtPoint(Point point)
Parameters
System.Drawing.Point point

The point.

Returns
GridCellElement

GetExpanderPrimitive(Point)

Gets the expander primitive.

Declaration
protected GridExpanderItem GetExpanderPrimitive(Point point)
Parameters
System.Drawing.Point point

The point.

Returns
GridExpanderItem

GetKeyboardNavigationContext(KeyEventArgs)

Gets the keyboard navigation context.

Declaration
protected virtual GridNavigationContext GetKeyboardNavigationContext(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The System.Windows.Forms.KeyEventArgs instance containing the event data.

Returns
GridNavigationContext

GetMouseNavigationContext(MouseEventArgs)

Gets the mouse navigation context.

Declaration
protected virtual GridNavigationContext GetMouseNavigationContext(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
GridNavigationContext

GetRowAtPoint(Point)

Gets the row at point.

Declaration
protected GridRowElement GetRowAtPoint(Point point)
Parameters
System.Drawing.Point point

The point.

Returns
GridRowElement

GetTableElementAtPoint(Point)

Gets the table element at point.

Declaration
protected GridTableElement GetTableElementAtPoint(Point point)
Parameters
System.Drawing.Point point

The point.

Returns
GridTableElement

IsOnFirstCell()

Determines whether [is on first cell].

Declaration
protected bool IsOnFirstCell()
Returns
System.Boolean

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

IsOnLastCell()

Determines whether [is on last cell].

Declaration
protected bool IsOnLastCell()
Returns
System.Boolean

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

OnClick(EventArgs)

Occurs when the RadGridView is clicked.

Declaration
public override bool OnClick(EventArgs e)
Parameters
System.EventArgs e

Type: System.EventArgs

Returns
System.Boolean

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
public override bool OnContextMenu(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The MouseEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.OnContextMenu(MouseEventArgs)

OnDoubleClick(EventArgs)

Occurs when the RadGridView is double-clicked.

Declaration
public override bool OnDoubleClick(EventArgs e)
Parameters
System.EventArgs e

Type: System.EventArgs

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.OnDoubleClick(EventArgs)

OnMouseDoubleClick(MouseEventArgs)

Raises the MouseDoubleClick event.

Declaration
public override bool OnMouseDoubleClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

Overrides
GridBehaviorImpl.OnMouseDoubleClick(MouseEventArgs)

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

Declaration
public override bool OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

Overrides
GridBehaviorImpl.OnMouseDown(MouseEventArgs)

OnMouseDownLeft(MouseEventArgs)

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

Declaration
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The MouseEventArgs containing data related to this event

Returns
System.Boolean

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
protected virtual bool OnMouseDownRight(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The MouseEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

OnMouseEnter(EventArgs)

Raises the MouseEnter event.

Declaration
public override bool OnMouseEnter(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Returns
System.Boolean

Overrides
GridBehaviorImpl.OnMouseEnter(EventArgs)

OnMouseLeave(EventArgs)

Raises the MouseLeave event.

Declaration
public override bool OnMouseLeave(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Returns
System.Boolean

Overrides
GridBehaviorImpl.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Occurs when the mouse pointer is moved over the RadGridView.

Declaration
public override bool OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The MouseEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

Declaration
public override bool OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

Overrides
GridBehaviorImpl.OnMouseUp(MouseEventArgs)

OnMouseUpLeft(MouseEventArgs)

Raises the MouseUpLeft event.

Declaration
protected virtual bool OnMouseUpLeft(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

OnMouseUpRight(MouseEventArgs)

Raises the MouseUpRight event.

Declaration
protected virtual bool OnMouseUpRight(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

Declaration
public override bool OnMouseWheel(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

Overrides
GridBehaviorImpl.OnMouseWheel(MouseEventArgs)

ProcessAddKey(KeyEventArgs)

Processes the Add key

Declaration
protected virtual bool ProcessAddKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessAlphaNumericKey(KeyPressEventArgs)

Processes the alpha-numeric keys

Declaration
protected virtual bool ProcessAlphaNumericKey(KeyPressEventArgs keys)
Parameters
System.Windows.Forms.KeyPressEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessDeleteKey(KeyEventArgs)

Processes the Delete key

Declaration
protected virtual bool ProcessDeleteKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessDownKey(KeyEventArgs)

Processes the Down key

Declaration
protected virtual bool ProcessDownKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessEndKey(KeyEventArgs)

Processes the End key

Declaration
protected virtual bool ProcessEndKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessEnterKey(KeyEventArgs)

Processes the Enter key

Declaration
protected virtual bool ProcessEnterKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessEscapeKey(KeyEventArgs)

Processes the Escape key

Declaration
protected virtual bool ProcessEscapeKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessF2Key(KeyEventArgs)

Processes the F2 key

Declaration
protected virtual bool ProcessF2Key(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessHomeKey(KeyEventArgs)

Processes the Home key

Declaration
protected virtual bool ProcessHomeKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessInsertKey(KeyEventArgs)

Processes the Insert key

Declaration
protected virtual bool ProcessInsertKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessKey(KeyEventArgs)

Processes key events in RadGridView.

Declaration
public override bool ProcessKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.ProcessKey(KeyEventArgs)

ProcessKeyDown(KeyEventArgs)

Processes key down events in RadGridView.

Declaration
public override bool ProcessKeyDown(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.ProcessKeyDown(KeyEventArgs)

ProcessKeyPress(KeyPressEventArgs)

Processes key press events in RadGridView.

Declaration
public override bool ProcessKeyPress(KeyPressEventArgs keys)
Parameters
System.Windows.Forms.KeyPressEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.ProcessKeyPress(KeyPressEventArgs)

ProcessKeyUp(KeyEventArgs)

Processes key up events in RadGridView.

Declaration
public override bool ProcessKeyUp(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

Overrides
GridBehaviorImpl.ProcessKeyUp(KeyEventArgs)

ProcessLeftKey(KeyEventArgs)

Processes the Left key

Declaration
protected virtual bool ProcessLeftKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessMouseSelection(Point, GridCellElement)

Processes the mouse selection.

Declaration
protected virtual bool ProcessMouseSelection(Point mousePosition, GridCellElement currentCell)
Parameters
System.Drawing.Point mousePosition

The mouse position.

GridCellElement currentCell

The current cell.

Returns
System.Boolean

ProcessPageDownKey(KeyEventArgs)

Processes the PageDown key

Declaration
protected virtual bool ProcessPageDownKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessPageUpKey(KeyEventArgs)

Processes the PageUp key

Declaration
protected virtual bool ProcessPageUpKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessRightKey(KeyEventArgs)

Processes the Right key

Declaration
protected virtual bool ProcessRightKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessSpaceKey(KeyEventArgs)

Processes the Space key

Declaration
protected virtual bool ProcessSpaceKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessSubtractKey(KeyEventArgs)

Processes the Subtract key

Declaration
protected virtual bool ProcessSubtractKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessTabKey(KeyEventArgs)

Processes the Tab key

Declaration
protected virtual bool ProcessTabKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessUnhandledKeys(KeyEventArgs)

Processes keys that are not handled by ProcessKey methoes

Declaration
protected bool ProcessUnhandledKeys(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ProcessUpKey(KeyEventArgs)

Processes the Up key

Declaration
protected virtual bool ProcessUpKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs keys

The KeyPressEventArgs containing data related to this event

Returns
System.Boolean

Returns true if the event is processed

ResetControlCursor()

Resets the control cursor.

Declaration
protected void ResetControlCursor()

ResetFieldValues()

Resets the field values.

Declaration
protected virtual bool ResetFieldValues()
Returns
System.Boolean

ResizeRow(Point)

Resizes the row.

Declaration
protected virtual void ResizeRow(Point currentLocation)
Parameters
System.Drawing.Point currentLocation

The current location.

SelectNextControl(Boolean)

Selects the next control.

Declaration
protected virtual bool SelectNextControl(bool forward)
Parameters
System.Boolean forward

if set to true [forward].

Returns
System.Boolean

SelectPositionOnMouseDownLeft(MouseEventArgs, GridRowElement, GridCellElement)

Selects the position on mouse down left.

Declaration
protected virtual bool SelectPositionOnMouseDownLeft(MouseEventArgs e, GridRowElement rowElement, GridCellElement cellElement)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

GridRowElement rowElement

The row element.

GridCellElement cellElement

The cell element.

Returns
System.Boolean

ShowSizeNSCursort(Point)

Shows the size NS cursort.

Declaration
protected virtual bool ShowSizeNSCursort(Point currentLocation)
Parameters
System.Drawing.Point currentLocation

The current location.

Returns
System.Boolean

ValidateOnUserInput(MouseEventArgs)

Validates the on user input.

Declaration
protected virtual bool ValidateOnUserInput(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Returns
System.Boolean

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.