Class GridCurrentCellMovingEventArgs
Provides data about the cancelable CurrentCellMoving event before the current cell is moved to a new position as a result from a MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) method call.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridCurrentCellMovingEventArgs : GridCurrentCellActivatingEventArgs
Remarks
The GridCurrentCellMovingEventArgs is a custom event argument class used by the CurrentCellMoving event when the current cell is about to be moved to a new position. You can disallow the activation of specific cells at run-time when you assign true to System.ComponentModel.CancelEventArgs.Cancel.
You can modify the RowIndex and ColIndex to activate a different cell.
You can also modify the Options.
Once the current cell has been moved, a CurrentCellMoved event is raised or a CurrentCellMoveFailed if moving to the specified target cell failed.
See MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) for a discussion about the order of events that you receive when the current cell is moved.
Constructors
GridCurrentCellMovingEventArgs(Int32, Int32, GridSetCurrentCellOptions)
Initializes the new instances for the GridCurrentCellMovingEventArgs class.
Declaration
public GridCurrentCellMovingEventArgs(int rowIndex, int colIndex, GridSetCurrentCellOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
GridSetCurrentCellOptions | options | The options specified for the MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) operation. |