G
Guest
Hi everyone.... I am writing a new Windows app using VS 2005.
My memory must be failing me, but I was under the impression that when I
call the "nodes.add" methods and I supply a key property, that that value
must be unique. I was then able to make reference to that node later on my
using that key.
I did some testing, and it looks like I can give all of the nodes in the
tree the same key.
So, is there something new that I'm missing? I need to expand a node based
on a unique value (I am using GUID.tostring right now). To keep it simple,
let say I have 26 nodes, and randomly label them A to Z. If I want to
programatically expand node M, (without interaction with the treeview
control), how can I do that? Using the "Index" value won't do the trick, as
I would never know where it would appear in the treeview. I also don't want
to loop through all nodes, as there are times when I may have a few thousand
of them.
Thanks,
Forch
My memory must be failing me, but I was under the impression that when I
call the "nodes.add" methods and I supply a key property, that that value
must be unique. I was then able to make reference to that node later on my
using that key.
I did some testing, and it looks like I can give all of the nodes in the
tree the same key.
So, is there something new that I'm missing? I need to expand a node based
on a unique value (I am using GUID.tostring right now). To keep it simple,
let say I have 26 nodes, and randomly label them A to Z. If I want to
programatically expand node M, (without interaction with the treeview
control), how can I do that? Using the "Index" value won't do the trick, as
I would never know where it would appear in the treeview. I also don't want
to loop through all nodes, as there are times when I may have a few thousand
of them.
Thanks,
Forch