MyDAC

TMyDataSetOptions.RemoveOnRefresh Property

Used for dataset to remove a record locally if the RefreshRecord procedure can't find necessary record on the server.

Class

TMyDataSetOptions

Syntax

property RemoveOnRefresh: boolean;

Remarks

When the RefreshRecord procedure can't find necessary record on the server and RemoveOnRefresh is set to True, dataset removes the record locally. Usually RefreshRecord can't find necessary record when someone else dropped the record or changed its key value.

This option makes sense only if the StrictUpdate option is set to False. If the StrictUpdate option is True, error will be generated regardless of the RemoveOnRefresh option value.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback