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