المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to copy cheked nodes from a treeview to to new treeview?



C# Programming
01-03-2012, 12:01 AM
i have written the code for filling a treeview with some nodes and subnodes by enabling checkboxes. when a subnode is checked its parent should be checked and when a parent is checked all of its childs should be cheked(like general scenario).

But when i started copying the selected nodes in the treeview1 to new treeview(treeview2)i am getting so many problems. i tried different events to achieve this like NodeMouseClick,treeviewAfterSelect,Aftercheck,AfterExpand but unable to get the required node set (total hierarchy of checked nodes with out repetition and should reflect every change showing and shoud be removed when unchecked )

can any one please help in doing this ?
janardhan