menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellMouseEventArgs - API Reference

    Show / Hide Table of Contents

    Class GridCellMouseEventArgs

    Provides data about cancelable cell-related mouse events such as CellMouseHoverEnter and CellMouseHoverLeave.

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridCellCancelEventArgs
    GridCellMouseEventArgs
    Inherited Members
    GridCellCancelEventArgs.RowIndex
    GridCellCancelEventArgs.ColIndex
    SyncfusionCancelEventArgs.ToString()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridCellMouseEventArgs : GridCellCancelEventArgs
    Remarks

    GridCellMouseEventArgs is a custom event argument class used by the cell-related mouse events such as CellMouseHoverEnter and CellMouseHoverLeave when the grid performs mouse operation for a specific cell.

    The event method is called before the cell renderer processes the mouse event. If you want to customize the mouse operation and suppress the cell's default mouse processing, you should set System.ComponentModel.CancelEventArgs.Cancel to True.

    Constructors

    GridCellMouseEventArgs(Int32, Int32, GridCellButton, MouseEventArgs)

    Initializes a new instances for GridCellMouseEventArgs class.

    Declaration
    public GridCellMouseEventArgs(int rowIndex, int colIndex, GridCellButton cellButton, MouseEventArgs mouseEventArgs)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    The row index.

    System.Int32 colIndex

    The column index.

    GridCellButton cellButton

    The cell button that is the target of the current mouse operation or NULL if the cell itself is the target.

    System.Windows.Forms.MouseEventArgs mouseEventArgs

    The System.Windows.Forms.MouseEventArgs originating this event.

    Properties

    CellButton

    Gets the cell button that is the target of the current mouse operation or NULL if the cell itself is the target.

    Declaration
    [TraceProperty(true)]
    public GridCellButton CellButton { get; }
    Property Value
    Type Description
    GridCellButton

    MouseEventArgs

    Gets the System.Windows.Forms.MouseEventArgs originating this event.

    Declaration
    [TraceProperty(true)]
    public MouseEventArgs MouseEventArgs { get; }
    Property Value
    Type Description
    System.Windows.Forms.MouseEventArgs

    See Also

    GridCellMouseEventHandler
    CellMouseHoverEnter
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved