DBActns.TDataSetCancel

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DBActns.pas

TDataSetCancel = class(TDataSetAction)


Unit: DBActns

Type: class

Inherited Class Members: DBActns.TDataSetCancel Members

C++ Information

From DBActns.hpp

TDataSetCancel = class(TDataSetAction)


Unit: DBActns

Type: class

Inherited Class Members: DBActns.TDataSetCancel Members

Class Constructors & Destructors: DBActns.TDataSetCancel Constructors

Description

TDataSetCancel cancels the edits to the current record, restores record display to its condition prior to editing, and takes the dataset out of edit mode.


Add TDataSetCancel to an action list to allow users to cancel edits made to a dataset in the application. Controls such as menu items and tool buttons linked to this action cause the application to cancel edits, restore record display, and take the associated dataset out of edit mode.

TDataSetCancel is designed to work with a TDataSource component as its target. You can explicitly provide this target by setting the DataSource property, or you can allow the action to infer the data source from an active data-aware control. TDataSetCancel automatically disables itself if it does not have a target data source attached to an active dataset that is in edit mode.

See Also

Personal tools
Translations
Newest Version