Eyal Lewin

Eyal Lewin

  • NA
  • 18
  • 0

Treeview doesn't update after treenode.remove

Dec 30 2009 5:18 AM
I've written the following code to remove a node from a treeview. The node data isremoved, butthe node is still there. Apparently I need to force a refresh, as the selected node does go away when I navigate away and back to the page.

Can anyone help?
Thanks
Eyal

 //removes the node from the DB
int remove = SchemaDB.DeleteGenericLink(originNode.Tag),TargetNode.Tag);

if (remove)
{
originNode.Remove();
}
//this if, doesnt remove the originNode from the targetNode.Nodes


Answers (3)