neelg Posted September 13, 2003 Posted September 13, 2003 Hi I was wondering if there was any way whatsoever to get unique node values for the nodes in a treeview control. I have looked through most threads and cannot find aything useful. I would appreciate it if anyone knew of how to ssign unique values and then retrieve them would be able to show me how to, as I have been struggling to get my treeview control populated, as the 2nd Nested nodes are added to the top as the index value is reset in each node. :confused: :confused: :confused: Quote
*Gurus* divil Posted September 13, 2003 *Gurus* Posted September 13, 2003 If you want to keep track of your nodes in some other way than the hierarchical representation in the treeview you'll have to use a hashtable or your own collection to do so. Nodes themselves no longer have a Key or anything globally unique. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
neelg Posted September 14, 2003 Author Posted September 14, 2003 thanks for your help. I just solved the problem using recursion to populate the nested nodes. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.