Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomDataController.Cancel Method

In This Article

Cancels unposted record modifications.

#Declaration

Delphi
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