Skip to main content

TdxServerModeCustomDataSource.CancelUpdate Method

Enables sending notifications about data source changes after the BeginUpdate method was called.

Declaration

procedure CancelUpdate;

Remarks

To improve performance and prevent the linked data-aware control’s data controller from refreshing its contents during updates to the data source’s connection or target source settings, enclose the code performing the updates within BeginUpdate/EndUpdate blocks. If no changes are made, you can call the CancelUpdate method to enable further updates. Unlike EndUpdate, the CancelUpdate method does not send notifications to the data controller – it simply cancels the last BeginUpdate method call.

Ensure that every call to BeginUpdate has a corresponding call to the EndUpdate method (or to CancelUpdate).

See Also