Find in treeview

L

Luis

Hello.
I have a form with a treeview control.
i'm trying to create a search button and i'd like to know if it's possible
to create a recordset with the data contained on the tree.

if so, how?

Thanks

Luis
 
A

Alex Dybenko

Well, I think you can create ADO recordset, based on your treeview data, but
this can be quite complicated task. What you can also do:
search within treeview control

for each node in oTV.nodes
if node.text like "*bal-bla*" then
node.selected=true
exit for
end if
next

or search in recordset, you used to fill the tree, and then select found
node

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
 

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

Rebuilding Treeview 1
Treeview rebuild 1
Treeview click event 1
Filling Treeview 3
Adding Child Nodes to Treeview 2
Treeview 2
Treeview Nodes and calling functions 3
Treeview Control 3

Top