identifying a node in treeview

Discussion in 'Questions (Windows Mobile)' started by BjornF, May 25, 2008.

  1. BjornF

    BjornF Active Member Licensed User

    Is there some way to identify a given node - except through the text of that node? That is, in the example below the node "Great-Grandson" could be identified as 2.0.0 or "Grandchildren3" as 2.2.

    all the best / Björn

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    You could use the Parent property to find the text of its parent (and continue up to the root).
  3. John F. Eldredge

    John F. Eldredge Member Licensed User

    If you aren't using images on the treeview, you can use the node's ImageIndex property to store a number, which in turn could be an index value into an array storing additional information about the node.
  4. BjornF

    BjornF Active Member Licensed User

    Thanks for the tip, that sounds like a neat idea :)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice