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 BaseGridBehavior

This class is a message filter for RadGridView and handles mouse and keyboard events

Inheritance
System.Object
GridBehaviorImpl
SplitGridBehavior
BaseGridBehavior
MultiColumnComboGridBehavior
Inherited Members
SplitGridBehavior.OnMouseEnter(EventArgs)
SplitGridBehavior.GetGridTableElementAtPoint(Point)
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 BaseGridBehavior : SplitGridBehavior, IGridBehavior, IDisposable

Constructors

BaseGridBehavior()

Initializes a new instance of the BaseGridBehavior class.

Declaration
public BaseGridBehavior()

Properties

CellAtPoint

Gets the cell at point.

Declaration
public GridCellElement CellAtPoint { get; }
Property Value
GridCellElement

The cell at point.

DefaultRowBehavior

Gets the default row behavior.

Declaration
public virtual IGridBehavior DefaultRowBehavior { get; }
Property Value
IGridBehavior

The default row behavior.

LockedBehavior

Gets the locked behavior.

Declaration
public IGridBehavior LockedBehavior { get; }
Property Value
IGridBehavior

The locked behavior.

OriginalCursor

Gets or sets the original control cursor.

Declaration
public Cursor OriginalCursor { get; set; }
Property Value
System.Windows.Forms.Cursor

The original cursor.

RowAtPoint

Gets the row at point.

Declaration
public GridRowElement RowAtPoint { get; }
Property Value
GridRowElement

The row at point.

Methods

Dispose()

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

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

Dispose(Boolean)

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

Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean disposing

The disposing.

Finalize()

Declaration
protected void Finalize()

GetBehavior(Type)

Gets an instance of IGridBehavior for specified GridViewRowInfo type.

Declaration
public virtual IGridBehavior GetBehavior(Type rowType)
Parameters
System.Type rowType

A type inherited from GridViewRowInfo.

Returns
IGridBehavior

Returns an instance of IGridBehavior

GetCurrentRowBehavior()

Gets the current row behavior.

Declaration
protected virtual IGridBehavior GetCurrentRowBehavior()
Returns
IGridBehavior

GetFirstScrollableRow(GridTableElement, Boolean)

Gets the first scrollable row.

Declaration
protected GridViewRowInfo GetFirstScrollableRow(GridTableElement tableElement, bool checkBounds)
Parameters
GridTableElement tableElement

The table element.

System.Boolean checkBounds

if set to true [check bounds].

Returns
GridViewRowInfo

GetLastScrollableRow(GridTableElement)

Gets the last scrollable row.

Declaration
protected GridViewRowInfo GetLastScrollableRow(GridTableElement tableElement)
Parameters
GridTableElement tableElement

The table element.

Returns
GridViewRowInfo

GetRowBehaviorAtPoint(Point)

Gets the row behavior at point.

Declaration
protected virtual IGridBehavior GetRowBehaviorAtPoint(Point point)
Parameters
System.Drawing.Point point

The point.

Returns
IGridBehavior

Initialize(RadGridViewElement)

Initializes the IGridBehavior with the specified RadGridViewElement

Declaration
public override void Initialize(RadGridViewElement gridRootElement)
Parameters
RadGridViewElement gridRootElement

Overrides
GridBehaviorImpl.Initialize(RadGridViewElement)

LockBehavior(IGridBehavior)

Locks the specified behavior.

Declaration
public virtual void LockBehavior(IGridBehavior behavior)
Parameters
IGridBehavior behavior

The behavior.

NavigateToPage(GridViewRowInfo, Keys)

Navigates to page.

Declaration
protected virtual void NavigateToPage(GridViewRowInfo row, Keys keys)
Parameters
GridViewRowInfo row

The row.

System.Windows.Forms.Keys keys

The keys.

OnClick(EventArgs)

Raises the Click event.

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

The System.EventArgs instance containing the event data.

Returns
System.Boolean

Overrides
SplitGridBehavior.OnClick(EventArgs)

OnContextMenu(MouseEventArgs)

Raises the ContextMenu event.

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

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

Returns
System.Boolean

Overrides
SplitGridBehavior.OnContextMenu(MouseEventArgs)

OnDoubleClick(EventArgs)

Raises the DoubleClick event.

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

The System.EventArgs instance containing the event data.

Returns
System.Boolean

Overrides
SplitGridBehavior.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
SplitGridBehavior.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
SplitGridBehavior.OnMouseDown(MouseEventArgs)

OnMouseDownLeft(MouseEventArgs)

Raises the MouseDownLeft event.

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

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

Returns
System.Boolean

OnMouseDownRight(MouseEventArgs)

Raises the MouseDownRight event.

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

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

Returns
System.Boolean

OnMouseLeave(EventArgs)

Occurs when the mouse pointer leaves the RadGridView.

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

Type: System.EventArgs

Returns
System.Boolean

Returns true if the event is processed

Overrides
SplitGridBehavior.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

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

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

Returns
System.Boolean

Overrides
SplitGridBehavior.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
SplitGridBehavior.OnMouseUp(MouseEventArgs)

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
SplitGridBehavior.OnMouseWheel(MouseEventArgs)

ProcessKey(KeyEventArgs)

Processes the key.

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

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

Returns
System.Boolean

Overrides
SplitGridBehavior.ProcessKey(KeyEventArgs)

ProcessKeyDown(KeyEventArgs)

Processes the key down.

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

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

Returns
System.Boolean

Overrides
SplitGridBehavior.ProcessKeyDown(KeyEventArgs)

ProcessKeyPress(KeyPressEventArgs)

Processes the key press.

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

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

Returns
System.Boolean

Overrides
SplitGridBehavior.ProcessKeyPress(KeyPressEventArgs)

ProcessKeyUp(KeyEventArgs)

Processes the key up.

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

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

Returns
System.Boolean

Overrides
SplitGridBehavior.ProcessKeyUp(KeyEventArgs)

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

RegisterBehavior(Type, IGridBehavior)

Registers IGridBehavior instance for specified row type

Declaration
public virtual void RegisterBehavior(Type rowType, IGridBehavior rowBehavior)
Parameters
System.Type rowType

A type inherited from GridViewRowInfo.

IGridBehavior rowBehavior

An instance of IGridBehavior.

UnlockBehavior(IGridBehavior)

Unlocks the behavior.

Declaration
public virtual void UnlockBehavior(IGridBehavior behavior)
Parameters
IGridBehavior behavior

The behavior.

UnregisterBehavior(Type)

Unregisters IGridBehavior instance for specified row type

Declaration
public virtual bool UnregisterBehavior(Type rowType)
Parameters
System.Type rowType

A type inherited from GridViewRowInfo.

Returns
System.Boolean

Returns true if succeed, otherwise false.

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.