Re: Best structure for a tree class's children



It depends a lot on what you need to do with the
hierarchy. If you are just displaying it, then this
is fine. If you need to manage drag and drop
and maintaing the new relationships, then use
this type of approach may be better:

http://www.eggheadcafe.com/articles/treeview_databinding.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
EggHeadCafe's RSS Search Engine
http://www.eggheadcafe.com/articles/multisearch/default.aspx




<ahaupt@xxxxxxxxx> wrote in message
news:1126373494.487817.156210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> Just a quick one: At the moment I use an ArrayList to store 'n Tree
> classes' children.
>
> Is this the best/quickest structure to use? What do you guys use?
>
> Best,
> Andre
>


.



Relevant Pages

  • Re: Viewing via Google, I no longer get trees on the left side...???
    ... it's gone back to displaying the tree ... hierarchy when I open up any thread. ... Must've been the goat sacrifices I ...
    (rec.woodworking)
  • Re: Co-optation Today
    ... hierarchy. ... That's why I say that a tree is a representation of the hierarchy, ... But a nested hierarchy is best understood and defined in terms of sets, ... of the root. ...
    (talk.origins)
  • Re: Co-optation Today
    ... hierarchy. ... That's why I say that a tree is a representation of the hierarchy, ... But a nested hierarchy is best understood and defined in terms of sets, ... of the root. ...
    (talk.origins)
  • Re: Co-optation Today
    ... hierarchy. ... That's why I say that a tree is a representation of the hierarchy, ... But a nested hierarchy is best understood and defined in terms of sets, ... of the root. ...
    (talk.origins)
  • Re: Co-optation Today
    ... hierarchy. ... That's why I say that a tree is a representation of the hierarchy, ... But a nested hierarchy is best understood and defined in terms of sets, ... of the root. ...
    (talk.origins)