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

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
        With .Nodes
            Dim i As Long
            For i = 1 To 100
                .Add "Child <b>" & i & "</b>"
        End With
End With

Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.