Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I expand all items as a result of interactive demand from an user ( pressing button and etc… )?

0
Posted

How do I expand all items as a result of interactive demand from an user ( pressing button and etc… )?

0

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 .

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123