Click or drag to resize
GridControlOnCancelEditing Method
Raises the CancelEditing event.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
protected virtual bool OnCancelEditing(
	CancelEditingEventArgs e
)

Parameters

e
Type: Stingray.GridCancelEditingEventArgs
The event data.

Return Value

Type: Boolean
true if the operation can be cancelled; false otherwise.
Remarks
This method is invoked when the user presses ESC in the current cell. The following steps show the default processing for this event:
  • The CancelEditing event is raised, and delegates are invoked. You can indicate whether or not editing can be canceled.
  • The CancelEditing event is raised. You can again indicate whether or not editing can be canceled.
  • Editing can be cancelled if it is never indicated that editing cannot be canceled.

You can monitor all controls via CancelEditing, or you can attach a delegate to the specific CellControl that you want to monitor.

Raising the event causes the invocation of all delegates attached to the event.

This method is virtual to allow classes derived from GridControl to handle the event. This is the preferred technique for handling events in derived classes.

When overriding this method, be sure to call the base class implementation to ensure that all delegates attached to the event are invoked.

See Also