Bde.DBTables.TDBDataSet.AutoRefresh
Delphi
property AutoRefresh: Boolean read FAutoRefresh write SetAutoRefresh default False;
C++
__property bool AutoRefresh = {read=FAutoRefresh, write=SetAutoRefresh, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TDBDataSet |
Description
Specifies whether server-generated field values are refetched automatically.
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.