restore treeview control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with text boxes, list boxes, combo boxes and a treeview control
that is used to create a work request. An option given to the user is to
save the info already entered in the form as draft info before making a final
work request submission. At a later date, the user can recall the draft
information into the form, edit it and then make a final submission of the
work request. I can restore the values of the text, list, and combo boxes,
but I am having trouble figuring out the treeview control. What do I need to
save from the treeview control so that at a later date I can restore it (node
selected and expanded to the selected node)?
 
Hi,
you can loop through treeview nodes:
for each node in oTreeview.nodes
....
next node
and save each node expanded and checked property to some table, together
with it key property

then, after you fill a treeview - you got loop saved table and set each node
properties
 
Back
Top