Syncfusion.Grid.Windows


CurrentCellMoving Event (GridControlBase)

Occurs when the current cell is about to be moved to a new position.
Syntax
'Declaration
 
<CategoryAttribute("Behavior")>
<DescriptionAttribute("Occurs when the current cell is about to be moved to a new position.")>
Public Event CurrentCellMoving As GridCurrentCellMovingEventHandler
'Usage
 
Dim instance As GridControlBase
Dim handler As GridCurrentCellMovingEventHandler
 
AddHandler instance.CurrentCellMoving, handler
[Category("Behavior")]
[Description("Occurs when the current cell is about to be moved to a new position.")]
public event GridCurrentCellMovingEventHandler CurrentCellMoving
Event Data

The event handler receives an argument of type GridCurrentCellMovingEventArgs containing data related to this event. The following GridCurrentCellMovingEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets or sets the column index. (Inherited from Syncfusion.Windows.Forms.Grid.GridCurrentCellActivatingEventArgs)
Gets or sets the options specified for the GridCurrentCell.MoveTo operation. (Inherited from Syncfusion.Windows.Forms.Grid.GridCurrentCellActivatingEventArgs)
Gets or sets the row index. (Inherited from Syncfusion.Windows.Forms.Grid.GridCurrentCellActivatingEventArgs)
Remarks
You can disallow the activation of specific cells at run-time when you assign True to System.ComponentModel.CancelEventArgs.Cancel.

You can modify the GridCurrentCellActivatingEventArgs.RowIndex and GridCurrentCellActivatingEventArgs.ColIndex to activate a different cell.

You can also modify the GridCurrentCellActivatingEventArgs.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 GridCurrentCell.MoveTo for a discussion about the order of events that you receive when the current cell is moved.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also