Click or drag to resize
CellControlOnCancelEditing 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 event data allows to cancel the action; 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 the CancelEditing event, or you can attach a delegate to the specific CellControl that you want to monitor.
See Also