Home All Groups Group Topic Archive Search About

expand a node of a treeview programmatically

Author
7 Apr 2005 1:31 PM
Sam
Hi,
I'd like to select a node in my code and expand that node.
How can I do the selection ? How can I expand it once I've selected the
node ?

Thx

Author
7 Apr 2005 2:01 PM
rawCoder
Use
TreeView.SelectedNode to select the node
TreeNode.Expand to expand the node

HTH
rawCoder

Show quoteHide quote
"Sam" <samuel.berthe***@voila.fr> wrote in message
news:1112880696.184240.289060@z14g2000cwz.googlegroups.com...
> Hi,
> I'd like to select a node in my code and expand that node.
> How can I do the selection ? How can I expand it once I've selected the
> node ?
>
> Thx
>
Author
7 Apr 2005 3:00 PM
Sam
thanks I've done that and it works
Author
7 Apr 2005 3:57 PM
Sam
thanks I've done that and it works