ITabCellBeforeEditEventArgs.Cancel

Syntax

Cancel: Boolean;

Description

The Cancel property determines whether the cell value is to be edited.

Example

Executing the example requires a form. The following components are placed on the form: the TabSheetBox component, and the UiTabSheet component named UiTabSheet1 and used as a data source for the TabSheetBox component. This procedure is used as a handler of the OnBeforeEdit event.

Sub TabSheetBox1OnBeforeEdit(Sender: Object; Args: ITabCellBeforeEditEventArgs);

Begin

Args.Cancel := True;

End Sub TabSheetBox1OnBeforeEdit;

As the result, editing the selected cell is cancelled.

See also:

ITabCellBeforeEditEventArgs