|
-
Feb 5th, 2009, 11:29 AM
#1
Thread Starter
Frenzied Member
[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.
-
Feb 5th, 2009, 02:07 PM
#2
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.
-
Feb 5th, 2009, 02:57 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|