How do I expand all items as a result of interactive demand from an user ( pressing button and etc… )?
The ExpandItem property of the Items collection expands or collapses an item. In order to expand all items you can use the following snippet of code: With Grid1 .BeginUpdate With .Items Dim i As Long For i = 0 To .ItemCount – 1 .ExpandItem(.ItemByIndex(i)) = True Next End With .EndUpdate End With The following sample collapses all items: With Grid1 .BeginUpdate With .Items Dim i As Long For i = 0 To .ItemCount – 1 .ExpandItem(.ItemByIndex(i)) = False Next End With .