>>This sounds very much like a treeview. I am more familiar with the treeview. >Are you using a treeview. Can you use a treeview?
>
>Hi, Dan! Following your tip, I've did my form with a treeview, instead of outline... now, I have a doubt:
>
>I populated my treeview, as below:
>oNode = o.Nodes.Add(,1,ALLTRIM(RepoView.cCodigo)+"_",RepoView.cDescricao,,)
>or
>oNode = o.Nodes.Add(pkey,4,ALLTRIM(RepoView.cCodigo)+"_",RepoView.cDescricao,,)
>
>and know I just don't know how I could expand programmatically a node... what is the syntax?
>
>I've tried
>
>ThisForm.oleTreeView.object.onode.Expanded(10)=.T.
>and
>ThisForm.oleTreeView.onode.Expanded(10)=.T.
>
>but it doesn't works...
>
>What I have to do?
Try this just to make sure you have the correct syntax.
WITH THISFORM.OleTreeView
FOR lnCurNode = 0 TO .ListCount
.NodeExpanded[ lnCurNode ] = .T.
ENDFOR
ENDWITH
If this works, you may have to expand more than one node in order to get that section auto expanded. But first let me know if this expands the entire tree.
HTH