Skip to main content

TcxEditingControl.EndUpdate Method

Enables updating of an editing control after the BeginUpdate method was called.

Declaration

procedure EndUpdate;

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