method XMLGrid.EndUpdate ()
Resumes painting the control after painting is suspended by the BeginUpdate method.

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