Prevents the component that holds the given collection from repainting until
EndUpdate is called.
|collectionObj||One of the objects listed in the Applies To section|
This method applies to the following objects:
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.