Class GridRowBehavior
Represents grid row behavior for managing keyboard and mouse input.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridRowBehavior : GridBehaviorImpl, IGridBehavior, IDisposable
  Constructors
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
         
  | 
    
IsPressedControl
Gets a value indicating whether this instance is pressed control.
Declaration
protected bool IsPressedControl { get; }
  Property Value
| 
        System.Boolean
         
  | 
    
IsPressedShift
Gets a value indicating whether this instance is pressed shift.
Declaration
protected bool IsPressedShift { get; }
  Property Value
| 
        System.Boolean
         
  | 
    
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
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
         
  | 
    
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
         
  | 
    
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
  Implements
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)
GetMouseNavigationContext(MouseEventArgs)
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
         
  | 
    
IsOnLastCell()
Determines whether [is on last cell].
Declaration
protected bool IsOnLastCell()
  Returns
| 
        System.Boolean
         
  | 
    
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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   | 
    
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
         
  |