>hi Cetin,
>i'm using your code to do some testing and when i run it with my data i get : ole idispatch exception code 0 from nodes : invalid key'
>
>do you have any idea ?
>
>thnx
With my code? You mean you get the error w/o any modification or after modification? I think after modification. Then here are guidelines about the keys:
-Parent nodes should be added before child nodes.
-Keys should be character values. Do not start with a digit. If you need a digit then create the key buy prefixing it with an underscore (ie: _1, _2).
-Trim() the keys. This is not a must but treeview (TV in short) keys when have trailing spaces, those spaces are part of the key and during search you need to supply exact number of spaces.
Cetin