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

TcxContainerStyle.BeginUpdate Method

Postpones all control redraw operations that reflect any style changes until an EndUpdate procedure call.

#Declaration

Delphi
procedure BeginUpdate;

#Remarks

Every time you change a style setting, the affected control redraws its UI and content to reflect the change. Enclose multiple style setting changes between BeginUpdate and EndUpdate procedure calls to avoid UI flickering due to excessive redraw operations and improve performance.

#BeginUpdate/EndUpdate Calls and Batch Settings

A BeginUpdate procedure call disables notifications and postpones all changes until an EndUpdate call. A subsequent EndUpdate call does the following:

  • Re-enables change notifications and corresponding redraw operations
  • Applies all changes made after a BeginUpdate call
  • Sends corresponding notifications in a batch
  • Redraws the affected control

Note

Ensure that every BeginUpdate procedure call is followed by an EndUpdate procedure call, even if an exception occurs. Otherwise, the affected control remains frozen and unresponsive.

See Also