TAdvCheckedTreeView - How do you exchange nodes?

I'm trying to exchange nodes in a TAdvCheckedTreeView component. I would have thought there would be an exchange method, but this doesn't seem to be the case.

The following doesn't work. The text in one of the nodes, the one that isn't selected, is not updated.

procedure TRegionTableColumnsForm.Exchange(i1, i2: integer);
var
	n: TAdvTreeViewNode;
begin
	n := ctvColumns.Nodes.Items[i1];
  ctvColumns.Nodes.Items[i1] := ctvColumns.Nodes.Items[i2];
  ctvColumns.Nodes.Items[i2] := n;
end;

How can I simply exchange two adjacent nodes and have the text also update?

Thanks,

Steve

Hi,


Please use the AdvCheckedTreeView1.MoveNode functionality to exchanged nodes.

OK - thanks! 


Can I suggest the addition of an
Exchange()

property. It's in all the generic collections and is therefore a standard that coders look for.


Best regards,

Steve