Results 1 to 3 of 3

Thread: [2.0] Custom data in a TreeView?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2.0] Custom data in a TreeView?

    I want to display this List<MyClass> that I have, but the way I originally wrote has me cringing. Originally I had 2 arrays. 1 was list and 1 was the treenodes. It was very messy to handle both of them. How should I do this?
    Last edited by high6; Feb 5th, 2009 at 11:33 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2.0] Custom data in a TreeView?

    Does your class Inherit from TreeNode? You can then combine the logic into a single class and add it to the TreeNode too.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] Custom data in a TreeView?

    I am doing that now .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width