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

TcxEditingControl.BeginUpdate Method

In This Article

Prevents an editing control from being updated until the EndUpdate or the CancelUpdate method is called.

#Declaration

Delphi
procedure BeginUpdate;

#Remarks

Each time you modify a property of an editing control, it is updated to reflect these changes. If you need to change several properties at once, flickering may occur. In this case, you can use the BeginUpdate/EndUpdate methods around the code updating your editing control.

The BeginUpdate method postpones control updates. To apply the changes made, you should call the EndUpdate method, which also causes the editing control’s invalidation. If no changes are made, you can call the CancelUpdate method, thus enabling further updates. Unlike EndUpdate, the CancelUpdate method does not invalidate the editing control. If you call the CancelUpdate method after performing changes that affect the visual representation of the control, an exception will occur.

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

See Also