Skip to main content

TcxCustomDataController.Cancel Method

Cancels unposted record modifications.

Declaration

procedure Cancel; virtual;

Remarks

You can call the Cancel method to discard changes made to field(s) of the active record prior to posting. If the data controller is not in edit state or the changes were posted, Cancel does nothing.

When a new record is inserted/appended and hasn’t been posted, the Cancel method deletes it. If a field is being modified, the Cancel method reverts it to its old value.

When data controller records are displayed in a Grid View, for instance, the end-user can cancel record modifications by pressing the Esc key.

See Also