RAD Studio VCL Reference
|
Specifies the type of records visible in a dataset when cached updates are enabled.
property UpdateRecordTypes: TUpdateRecordTypes;
__property TUpdateRecordTypes UpdateRecordTypes;
Use UpdateRecordTypes to specify the records that are visible in a dataset when cached updates are enabled. UpdateRecordTypes is a set that can have the following values:
Value |
Meaning |
rtModified |
Modified records are visible. |
rtInserted |
Inserted records are visible. |
rtDeleted |
Deleted records are visible. |
rtUnmodified |
Unmodified records are visible. |
By default, a dataset is created with an UpdateRecordTypes set of [rtModified, rtInserted, rtUnmodified], meaning that all existing, edited, or inserted records are visible to the user.
An application that must cycle through a dataset to undelete records may change UpdateRecordTypes as part of an undelete method, so that deleted records are "visible" long enough to restore them to their previously undeleted conditions.
An application might also use UpdateRecordTypes like a filter to temporarily limit visible records to those added or inserted by the user during the current session.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|