GridControl.ValidateCell Event

Enables you to specify whether the focused cell's data is valid, and whether the cell's editor can be closed.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll


public event GridCellValidationEventHandler ValidateCell
Public Event ValidateCell As GridCellValidationEventHandler

Event Data

The ValidateCell event handler receives an argument of the DevExpress.UI.Xaml.Grid.Native.GridCellValidationEventArgs type.


The ValidateCell event occurs before the focused cell's modified value is posted to a data source, allowing to manually validate its new value.

The focused cell's new value is returned by the event's CellValue property. To indicate that the new value is invalid, set the ValidationEventArgs.IsValid property to false.

See Also