Iterating through a treeView
Posted on 2006-06-16
Maybe it's just me, but I think that working with the TreeView Control is 10 times harder than it has to be. Here's what I need to do:
I need to dynamically populate a treeView. I DON'T WANT TO USE ANY LINKED LISTS OR ARRAY LISTS OR ANY OF THAT. My app is way too complicated to make the use of lists practical. I basically need to check if a certain grand child nood exists, if it does I need to update it, if not I need to create it. Please keep in mind that I don't know if there's anything in the TreeView yet at all. It could be completely empty in which case I need to make the Parent, Child, and, GrandChild nodes for that particular record. If it does exist, then I need to update the grandchild's name.
Also, How can I put an icon in front of a certaing grandchild node. Not all of them, just certain ones.