IReportCellContentChangeEventArgs.Cancel

Syntax

Cancel: Boolean;

Description

The Cancel property determines whether the changes made to table cell contents should be canceled. If this property is set to True, the changes made to the table cell contents should be canceled. The Cancel property is set to False by default.

Example

To execute the example, set this procedure as an event handler for the OnChangeCellContent event (changing table cell contents) for the ReportBox component that has the ReportBox1 identifier.

Sub ReportBox1OnChangeCellContent(Sender: Object; Args: IReportCellContentChangeEventArgs);

Begin

Args.Cancel := True;

End Sub ReportBox1OnChangeCellContent;

After executing the example, changes made in the table cells are canceled. Thus, editing the table values becomes impossible.

See also:

IReportCellContentChangeEventArgs