Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with TreeView Control
Message
De
08/02/1999 01:25:46
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
 
À
07/02/1999 23:15:46
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00184965
Message ID:
00184977
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform