TAdvStringGrid and nodes

Hello,

using the following code

procedure TForm1.Button1Click(Sender: TObject);
var
  I: Integer;
begin
AdvGrid.BeginUpdate;
AdvGrid.InsertRows(1,4);
for I := 1 to 5 do AdvGrid.Cells[1,i]:=inttostr(I);
AdvGrid.AddNode(1,5);

AdvGrid.InsertChildRow(5);
AdvGrid.Cells[1,6]:='6';
AdvGrid.AddNode(3,2);

AdvGrid.EndUpdate;
end;

i get this:
ex1

I don't know how to make Line '6' a child of Line '5'.

It should look like this:
ex2

Is there a way to do it like that?

regards
Andreas

If you make line 6 a child of line 5, line 6 will still remain (just like line 5) a child of line 1. So, it will draw the nodes from line 1 to line 6 (because when you collapse line 1 it is expected line 6 will also disappear).