CurrentCellActivating Event (GridControlBase)

Occurs before the grid activates the specified cell as current cell.
<DescriptionAttribute("Occurs before the grid activates the specified cell as current cell.")>
Public Event CurrentCellActivating As GridCurrentCellActivatingEventHandler
Dim instance As GridControlBase
Dim handler As GridCurrentCellActivatingEventHandler
AddHandler instance.CurrentCellActivating, handler
[Description("Occurs before the grid activates the specified cell as current cell.")]
public event GridCurrentCellActivatingEventHandler CurrentCellActivating
Event Data

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

(Inherited from System.ComponentModel.CancelEventArgs)
Gets or sets the column index.  
Gets or sets the options specified for the GridCurrentCell.MoveTo operation.  
Gets or sets the row index.  
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 determine if GridCurrentCell.Activate was called stand-alone or as result of a GridCurrentCell.MoveTo call by checking the GridCurrentCell.IsInMoveTo property.

Once the current cell has been activated, a CurrentCellActivated event is raised or a CurrentCellActivateFailed if activating the specified cell failed.

See GridCurrentCell.MoveTo for a discussion about the order of events that you receive when the current cell is moved.


Syncfusion.Grid.Windows: 17.4460.0.39

See Also