RAD Studio |  |

Editing Data
See Also
Collapse All

Client datasets represent their data as an in-memory data packet. This packet is the value of the client dataset's Data property. By default, however, edits are not stored in the Data property. Instead the insertions, deletions, and modifications (made by users or programmatically) are stored in an internal change log, represented by the Delta property. Using a change log serves two purposes:

- The change log is required for applying updates to a database server or external provider component.
- The change log provides sophisticated support for undoing changes.

The LogChanges property lets you disable logging. When LogChanges is True, changes are recorded in the log. When LogChanges is False, changes are made directly to the Data property. You can disable the change log in file-based applications if you do not want the undo support.

Edits in the change log remain there until they are removed by the application. Applications remove edits when

- Undoing changes
- Saving changes

Note: Saving the client dataset to a file does not remove edits from the change log. When you reload the dataset, the Data and Delta properties are the same as they were when the data was saved.
See Also

Navigating Data in Client Datasets

Limiting What Records Appear

Constraining Data Values

Sorting and Indexing

Representing Calculated Values

Adding Application-specific Information to the Data

Copying Data from Another Dataset

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!