CurrentCellValidating Event (GridControlBase)

Occurs when the grid validates contents of the active current cell.
<DescriptionAttribute("Occurs when the grid validates contents of the active current cell.")>
Public Event CurrentCellValidating As CancelEventHandler
Dim instance As GridControlBase
Dim handler As CancelEventHandler
AddHandler instance.CurrentCellValidating, handler
[Description("Occurs when the grid validates contents of the active current cell.")]
public event CancelEventHandler CurrentCellValidating
Event Data

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

You can mark the contents as invalid by by setting System.ComponentModel.CancelEventArgs.Cancel to True.

The grid raises this event when the CurrentCell object's GridCurrentCell.Validate method is called. GridCurrentCell.Deactivate calls this method when the current cell was in editing mode and its contents were modified.

You can determine if GridCurrentCell.Deactivate was called stand-alone or as result of a GridCurrentCell.MoveTo call by checking the GridCurrentCell.IsInMoveTo property.

You can find out about the current cell's position by querying the GridCurrentCell.RowIndex and GridCurrentCell.ColIndex properties of the CurrentCell object in GridControlBase.

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