hi,
i have build a tree based on load on demand method (ie, while expanding the root node only the child nodes are getting populated).
now my problem is,
i want to search the employee node in the treeview.
at first, only one node is there in a treeview. i need to call the node_Expand event every time based on the hierarchy of the employee.
the tree view is adding nodes for the first level.next time it gives nullreference exception.
Ex,
---
AAAA
--BBB
-------B1
-------B2
--CCC
--DDD
-------D1
-------D2
------------D21
--EEE
in the above tree i am going to find D21. first it builds the first level ie, AAA,BBB,CCC,DDD,EEE without error. the next level D1,D2 also bulit without error.next D2 node expanding time it gives the error.
how can i solve this. how to find the employee.
thanks,
mano.
i have build a tree based on load on demand method (ie, while expanding the root node only the child nodes are getting populated).
now my problem is,
i want to search the employee node in the treeview.
at first, only one node is there in a treeview. i need to call the node_Expand event every time based on the hierarchy of the employee.
the tree view is adding nodes for the first level.next time it gives nullreference exception.
Ex,
---
AAAA
--BBB
-------B1
-------B2
--CCC
--DDD
-------D1
-------D2
------------D21
--EEE
in the above tree i am going to find D21. first it builds the first level ie, AAA,BBB,CCC,DDD,EEE without error. the next level D1,D2 also bulit without error.next D2 node expanding time it gives the error.
how can i solve this. how to find the employee.
thanks,
mano.