Class GridCellMouseEventArgs
Provides data about cancelable cell-related mouse events such as CellMouseHoverEnter and CellMouseHoverLeave.
Inherited Members
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 |
---|
GridCellButton |
MouseEventArgs
Gets the System.Windows.Forms.MouseEventArgs originating this event.
Declaration
[TraceProperty(true)]
public MouseEventArgs MouseEventArgs { get; }
Property Value
Type |
---|
System.Windows.Forms.MouseEventArgs |