RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBDataSet.AutoRefresh Property

Specifies whether server-generated field values are refetched automatically.

Pascal
property AutoRefresh: Boolean;
C++
__property Boolean AutoRefresh;

When AutoRefresh is false (the default), values that the server creates for autoincrement fields and fields with default values when a record is posted are not automatically refetched by the dataset. Instead, the application must call the dataset's Refresh method to update these field values. When AutoRefresh is true, these field values are automatically refreshed without an explicit call to the Refresh method.

Note: Some database drivers can't determine which fields are autoincrement fields or have default values. For these cases, you must provide this information by setting the AutoGenerateValue property of all fields that should be refreshed. Similarly, you must set the field components' AutoGenerateValue properties when the dataset represents a query or stored procedure.
 

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