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

Interface IGridBehavior

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

Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll

Syntax

public interface IGridBehavior

Properties

GridControl

The RadGridView associated with this navigator

Declaration
RadGridView GridControl { get; }
Property Value
RadGridView

GridViewElement

The RadGridView associated with this navigator

Declaration
RadGridViewElement GridViewElement { get; }
Property Value
RadGridViewElement

Methods

Initialize(RadGridViewElement)

Initializes the IGridBehavior with the specified RadGridViewElement

Declaration
void Initialize(RadGridViewElement gridRootElement)
Parameters
RadGridViewElement gridRootElement

The RadGridViewElement to associate with this object

OnClick(EventArgs)

Occurs when the RadGridView is clicked.

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

Type: System.EventArgs

Returns
System.Boolean

Returns true if the event is processed

OnContextMenu(MouseEventArgs)

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

Declaration
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

OnDoubleClick(EventArgs)

Occurs when the RadGridView is double-clicked.

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

Type: System.EventArgs

Returns
System.Boolean

Returns true if the event is processed

OnMouseDoubleClick(MouseEventArgs)

Occurs when the RadGridView is double clicked by the mouse.

Declaration
bool OnMouseDoubleClick(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

OnMouseDown(MouseEventArgs)

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

Declaration
bool OnMouseDown(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)

Occurs when the mouse pointer enters the RadGridView.

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

Type: System.EventArgs

Returns
System.Boolean

Returns true if the event is processed

OnMouseLeave(EventArgs)

Occurs when the mouse pointer leaves the RadGridView.

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

Type: System.EventArgs

Returns
System.Boolean

Returns true if the event is processed

OnMouseMove(MouseEventArgs)

Occurs when the mouse pointer is moved over the RadGridView.

Declaration
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

OnMouseUp(MouseEventArgs)

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

Declaration
bool OnMouseUp(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

OnMouseWheel(MouseEventArgs)

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

Declaration
bool OnMouseWheel(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

ProcessKey(KeyEventArgs)

Processes key events in RadGridView.

Declaration
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

ProcessKeyDown(KeyEventArgs)

Processes key down events in RadGridView.

Declaration
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

ProcessKeyPress(KeyPressEventArgs)

Processes key press events in RadGridView.

Declaration
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

ProcessKeyUp(KeyEventArgs)

Processes key up events in RadGridView.

Declaration
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

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.