method XMLGrid.BeginUpdate ()
Maintains performance when items are added to the control one at a time. This method prevents the control from painting until the EndUpdate method is called.

TypeDescription
The BeginUpdate method prevents the control from painting until the EndUpdate method is called.  Use BeginUpdate and EndUpdate statement each time when the control requires more changes. Using the BeginUpdate and EndUpdate methods increase the speed of changing the control properties by preventing it from painting during changing. Use the Refresh method to refresh the control.

The sample adds several nodes to the control and prevents painting the control, while adding new nodes :

With XMLGrid1
    .BeginUpdate
        With .Nodes
            Dim i As Long
            For i = 1 To 100
                .Add "Child <b>" & i & "</b>"
            Next
        End With
    .EndUpdate
End With