Home > Archive > Visual Basic Syntax > June 2005 > Tree View Expand All - Help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Tree View Expand All - Help
|
|
| Manish Sawjiani 2005-06-11, 3:59 pm |
| Dear Experts
i have populated a treeview control using do while loop from database. All
the Nodes Major and Minor Contracted. Please can you tell how can i expand
the nodes? Would much appreciate your help
Thanks
Manish
--
Three Cheers to technet for the Help!
| |
| Bob Butler 2005-06-11, 3:59 pm |
| "Manish Sawjiani" <ManishSawjiani@discussions.microsoft.com> wrote in
message news:0E973A50-0E3F-41B4-A2C7-5C1652B55F96@microsoft.com
> Dear Experts
>
> i have populated a treeview control using do while loop from
> database. All the Nodes Major and Minor Contracted. Please can you
> tell how can i expand the nodes? Would much appreciate your help
<node reference>.Expanded = True
Dim oNode As Node
Set oNode = TreeView1.Nodes.Add(, , , "top node")
oNode.Expanded = True
Set oNode = TreeView1.Nodes.Add(oNode, tvwChild, , "childnode")
oNode.Expanded = True
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
| |
| Douglas Marquardt 2005-06-11, 3:59 pm |
|
Here is a example of recursing all the nodes:
http://vb.mvps.org/samples/project.asp?id=TreeRecurse
To expland the nodes, just use Node.Expanded = True/False
hth,
Doug.
"Manish Sawjiani" <ManishSawjiani@discussions.microsoft.com> wrote in message
news:0E973A50-0E3F-41B4-A2C7-5C1652B55F96@microsoft.com...
> Dear Experts
>
> i have populated a treeview control using do while loop from database. All
> the Nodes Major and Minor Contracted. Please can you tell how can i expand
> the nodes? Would much appreciate your help
>
> Thanks
> Manish
>
> --
> Three Cheers to technet for the Help!
|
|
|
|
|