>Dear All,
>
>When I create a treeview and display it on a form, it is in a collapsed state and as a result of which i have to click on the root node to expand it.
>
>I would greatly appreciate if anyone could give me the command to expand a treeview programmatically.
>
>with sincere thanks.
Try setting the nodes expanded property
oNode.Expanded = .T.
HTH
Caroline