BeginUpdate Method

Applies to TestComplete 15.48, last modified on March 01, 2023

Prevents the component that holds the given collection from repainting until EndUpdate is called.

Declaration

collectionObj.BeginUpdate()
collectionObj     One of the objects listed in the Applies To section  
Result     None  

Applies To

This method applies to the following objects:

TcxEditButtons, TcxRadioGroupItems

Description

Each time you modify the collection of items displayed in a component, for example, add new items or delete existing items, the component that holds this collection is repainted. You can use the BeginUpdate method before making changes to the collection in order to suspend repainting the component until the changes are complete. To resume painting the component, call the EndUpdate method after the changes are complete. This approach optimizes performance and can prevent the component from blinking when items are added or removed.

See Also

EndUpdate Method

Highlight search results