Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with TreeView Control
Message
From
08/02/1999 01:25:46
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
To
07/02/1999 23:15:46
Steve Summers
Pima County Superior Court
Tucson, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00184965
Message ID:
00184977
Views:
20
Steve,

ThisForm.MyTreeView.Nodes(KeyValue).Selected = .t.
ThisForm.MyTreeView.Nodes(KeyValue).Expanded = .t.

The first line makes sure the node you want is selected, and therefore visible, the next line expands it.

Note that you must have some method of knowing what the key values are. When populating treeviews from tables, I use a combination Alias+":"+Surrogate Key value.

Hope this helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform