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

TdxNavBarDefaultStyles.EndUpdate Method

In This Article

Applies all pending changes after a BeginUpdate procedure call.

#Declaration

Delphi
procedure EndUpdate;

#Remarks

The EndUpdate method is used in conjunction with the BeginUpdate method. When the BeginUpdate method is called, the internal counter is incremented by one. The counter value is initially zero. When the EndUpdate method is called, the counter is decremented. The NavBar control can recalculate its ViewInfo information only if the counter value is 0. Recalculation of the control’s ViewInfo information leads to its repainting.

Use this pair of methods to avoid multiple recalculations when performing a number of sequential changes to the default style properties. For instance, you may wish to change the background colors of the GroupHeader and GroupBackground default styles. If the code performing these changes is not enclosed within the BeginUpdate and EndUpdate method calls, the control will be repainted twice. Otherwise, only a single repainting will be performed.

See Also