Class GridCellCursorEventArgs
Provides data about the cancelable CellCursor event.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridCellCursorEventArgs : GridCellCancelEventArgs
Remarks
GridCellCursorEventArgs is a custom event argument class used by the CellCursor event when the grid queries which cursor to be displayed for a cell.
The event method is called before the cell renderer returns its cursor. If you want to provide your own cursor for the cell, you should assign the cursor object to System.Windows.Forms.Cursor and set System.Windows.Forms.Control.CancelEventArgs.Cancel to True.
Constructors
GridCellCursorEventArgs(Int32, Int32, GridCellButton, Cursor)
Initializes a new instances for GridCellCursorEventArgs class.
Declaration
public GridCellCursorEventArgs(int rowIndex, int colIndex, GridCellButton cellButton, Cursor cursor)
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.Cursor | cursor | The System.Windows.Forms.Cursor to be displayed. |
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 |
Cursor
Gets or sets the System.Windows.Forms.Cursor to be displayed.
Declaration
[TraceProperty(true)]
public Cursor Cursor { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Cursor |