FireDAC.Stan.Option.TFDFetchOptions.DetailOptimize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DetailOptimize: Boolean read GetDetailOptimize

C++

__property bool DetailOptimize = {read=GetDetailOptimize, write=SetDetailOptimize, stored=IsDOS, default=1};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Stan.Option.pas
FireDAC.Stan.Option.hpp
FireDAC.Stan.Option TFDFetchOptions

Description

Specifies to refresh the detail dataset only when the master record is changed.

Set the DetailOptimize property to True (default), to refresh the detail dataset only when the current detail dataset key field values are different from the master dataset key field values. This allows you to avoid extra refreshings, when the master dataset state is changed, non-key field values are changed, etc. 

Set the DetailOptimize property to False to always refresh the detail dataset. This can be useful, when an application expects that the detail dataset is refreshed after calling the Refresh method for the master dataset, and in some other cases.

See Also