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?
Printable View
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?
Does your class Inherit from TreeNode? You can then combine the logic into a single class and add it to the TreeNode too.
I am doing that now :D.