CellValidating Event

Fired before the control exits cell edit mode.


Public Event CellValidating As CellCancelEventHandler


This event is fired before any changes made by the user are committed to the cell.

You may trap this event to read the contents of the cell editor with the EditText property and to make sure the entry is valid for the given cell. If the entry fails validation, set the Cancel parameter to True. The changes will be discarded.

If you want to validate keys as they are typed into the editor, use the KeyPressEdit or the CellValueChanging events.

See Also

BeforeEdit Event, CellValueChanged Event