Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: AttachTo could imply Nodes.Add  (Read 602 times)

0 Members and 1 Guest are viewing this topic.

Joan Parera

  • Customer
  • Newbie
  • *
  • Offline Offline
  • Posts: 44
AttachTo could imply Nodes.Add
« on: November 01, 2009, 12:39:54 PM »
I think that when newNode.AttachTo(treeView) is called, then it should not be necessary to also call treeView.Nodes.Add(newNode).

I found that I had to call both functions to make my code work (if I do not, then the column that should display a custom control displays nothing).

Ruslan

  • Flexible TreeView Team
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 496
Re: AttachTo could imply Nodes.Add
« Reply #1 on: November 01, 2009, 01:14:31 PM »
Hello Joan,

Both AttachTo and Nodes.Add are intended for adding the node to the treeview. If the only way you can add your node is call both of them, please show us your code because you shouldn`t call both of them simultaneously.
 

Copyright © 2006-2012 ARMSoft. All rights reserved.