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

TdxCustomNavBar.BeginUpdate Method

In This Article

Prevents the control from being updated until the EndUpdate method is called.

#Declaration

Delphi
procedure BeginUpdate;

#Remarks

The BeginUpdate method should be used in combination with the EndUpdate method to prevent the control from being updated while performing sequential changes. The BeginUpdate method increments the internal counter (which is initially zero) by one and the EndUpdate method decrements it. The NavBar control only recalculates its ViewInfo information and repaints itself when the counter value is zero. This enables you to perform batch modifications.

Suppose you need to change the expanded state of several groups. By default, this will result in updating the control after each group’s expanded state has changed. To avoid this, enclose your code within BeginUpdate and EndUpdate method calls. The control will only be repainted once, which gives you a performance benefit and avoids flicker.

See Also