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

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class BaseGridBehavior : SplitGridBehavior, IGridBehavior, IDisposable

Inheritance: objectGridBehaviorImplSplitGridBehaviorBaseGridBehavior

Derived Classes: MultiColumnComboGridBehavior

Implements: IDisposableIGridBehavior

Inherited Members SplitGridBehavior.OnMouseEnter(EventArgs)SplitGridBehavior.GetGridTableElementAtPoint(Point)GridBehaviorImpl.GridViewElementGridBehaviorImpl.GridControl

Constructors

Initializes a new instance of the BaseGridBehavior class.

C#
public BaseGridBehavior()

Properties

Gets the cell at point.

C#
public GridCellElement CellAtPoint { get; }
Property Value:

The cell at point.

Gets the default row behavior.

C#
public virtual IGridBehavior DefaultRowBehavior { get; }
Property Value:

The default row behavior.

Gets the locked behavior.

C#
public IGridBehavior LockedBehavior { get; }
Property Value:

The locked behavior.

Gets or sets the original control cursor.

C#
public Cursor OriginalCursor { get; set; }
Property Value:

The original cursor.

Gets the row at point.

C#
public GridRowElement RowAtPoint { get; }
Property Value:

The row at point.

Methods

C#
protected ~BaseGridBehavior()

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

C#
public void Dispose()

Implements: IDisposable.Dispose()

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

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

The disposing.

Gets an instance of IGridBehavior for specified GridViewRowInfo type.

C#
public virtual IGridBehavior GetBehavior(Type rowType)
Parameters:rowTypeType

A type inherited from GridViewRowInfo.

Returns:

IGridBehavior

Returns an instance of IGridBehavior

Gets the current row behavior.

C#
protected virtual IGridBehavior GetCurrentRowBehavior()
Returns:

IGridBehavior

Gets the first scrollable row.

C#
protected GridViewRowInfo GetFirstScrollableRow(GridTableElement tableElement, bool checkBounds)
Parameters:tableElementGridTableElement

The table element.

checkBoundsbool

if set to true [check bounds].

Returns:

GridViewRowInfo

Gets the last scrollable row.

C#
protected GridViewRowInfo GetLastScrollableRow(GridTableElement tableElement)
Parameters:tableElementGridTableElement

The table element.

Returns:

GridViewRowInfo

Gets the row behavior at point.

C#
protected virtual IGridBehavior GetRowBehaviorAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

IGridBehavior

Initializes the IGridBehavior with the specified RadGridViewElement

C#
public override void Initialize(RadGridViewElement gridRootElement)
Parameters:gridRootElementRadGridViewElement

Overrides: GridBehaviorImpl.Initialize(RadGridViewElement)

Locks the specified behavior.

C#
public virtual void LockBehavior(IGridBehavior behavior)
Parameters:behaviorIGridBehavior

The behavior.

Navigates to page.

C#
protected virtual void NavigateToPage(GridViewRowInfo row, Keys keys)
Parameters:rowGridViewRowInfo

The row.

keysKeys

The keys.

Raises the event.

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

The EventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnClick(EventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnContextMenu(MouseEventArgs)

Raises the event.

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

The EventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnDoubleClick(EventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnMouseDoubleClick(MouseEventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnMouseDown(MouseEventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Occurs when the mouse pointer leaves the RadGridView.

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

Type: System.EventArgs

Returns:

bool

Returns true if the event is processed

Overrides: SplitGridBehavior.OnMouseLeave(EventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnMouseMove(MouseEventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnMouseUp(MouseEventArgs)

Raises the event.

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

The MouseEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.OnMouseWheel(MouseEventArgs)

Processes the key.

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

The KeyEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.ProcessKey(KeyEventArgs)

Processes the key down.

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

The KeyEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.ProcessKeyDown(KeyEventArgs)

Processes the key press.

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

The KeyPressEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.ProcessKeyPress(KeyPressEventArgs)

Processes the key up.

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

The KeyEventArgs instance containing the event data.

Returns:

bool

Overrides: SplitGridBehavior.ProcessKeyUp(KeyEventArgs)

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

Registers IGridBehavior instance for specified row type

C#
public virtual void RegisterBehavior(Type rowType, IGridBehavior rowBehavior)
Parameters:rowTypeType

A type inherited from GridViewRowInfo.

rowBehaviorIGridBehavior

An instance of IGridBehavior.

Unlocks the behavior.

C#
public virtual void UnlockBehavior(IGridBehavior behavior)
Parameters:behaviorIGridBehavior

The behavior.

Unregisters IGridBehavior instance for specified row type

C#
public virtual bool UnregisterBehavior(Type rowType)
Parameters:rowTypeType

A type inherited from GridViewRowInfo.

Returns:

bool

Returns true if succeed, otherwise false.