how to clone a treeview c# and save it to recover later
Posted
by
voodoomsr
on Stack Overflow
See other posts from Stack Overflow
or by voodoomsr
Published on 2010-12-24T21:50:46Z
Indexed on
2010/12/24
21:54 UTC
Read the original article
Hit count: 254
hi all, i need to clone an entire treeview to implement Undo\Redo actions. i try in different ways but it appears that directly isn't possible. I mean copying the entire treeview, save that copy in a list. Then when the Undo action is requested decrement a specific counter of levels of undo and replace the actual treeview with the treeview that exist in the index positions of the list. if I do redo the same happens but lvls is incremented so i recover what come next. Every time that a modifications occurs in the treeview i need to save that copy and increment the lvl counter
© Stack Overflow or respective owner