Treeview Expand/collapse All

  • Thread starter Thread starter Mary
  • Start date Start date
M

Mary

I am using dot net with C#, I have a working treeview, how
do i do expand/collapse all?
thank you
 
Assuming your treeview is named treeview1 perform the following after
loading your node collection

....
treeView1.ExpandAll();
//or
treeView1.CollapseAll();
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top