DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: is there a way to expand all?  (Read 3,673 times)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
is there a way to expand all?
« on: March 10, 2015, 09:35 AM »
hello
in a web app or a Win7 GUI, is it possible to expand everything in a treeview with one click?
it has to wait for stuff to load though
thanks!

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: is there a way to expand all?
« Reply #1 on: March 10, 2015, 10:54 AM »
Depends what you are using.  I think one reason people do the C# or .NET thing is for methods not always found in API calls:

https://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.expandall%28v=vs.110%29.aspx

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: is there a way to expand all?
« Reply #2 on: March 10, 2015, 11:42 AM »
Most treeviews support the Asterisk (*) key on the numeric keypad for Expand all, some have a (context-)menu entry for it.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Original address: https://www.donationcoder.com/forum/index.php?topic=40398.0