restore treeview control

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)?
 
A

Alex Dybenko

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top