Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBasicAction.EndUpdate Method

In This Article

Enables updating the UI elements linked to the action object, previously disabled by the BeginUpdate procedure call.

#Declaration

Delphi
procedure EndUpdate;

#Remarks

If there are multiple client controls associated with the current action object, you can use the BeginUpdate and EndUpdate procedures to improve performance every time the action’s state is changed.

The internal counter is used to determine whether the action object’s state is locked. All client controls associated with the action object can be updated in response to its state, caption, and/or hint changes only if the internal counter value is 0. Each call to the BeginUpdate procedure increments the internal counter by one while each call to EndUpdate/CancelUpdate decrements it by one.

Ensure that every call to BeginUpdate is followed by a call to the EndUpdate procedure, even if an exception occurs.

Note

Unlike CancelUpdate, the EndUpdate procedure immediately applies all pending changes to the client controls associated with the current action object. If a particular client control does not update itself according to an action state change, call the UpdateTarget procedure.

See Also