General information
Category:
Coding, syntax & commands
Hi Nick.
>My user enters a search value, how can I look for that value in a treeview that I have populated and then expand that particular node in the treeview highlighting the found value?
I suggest having the TreeView be a "front end" for a cursor. You could store both the text and the key for the node in the cursor, and do a SEEK when the user enters the search value. When you find the record in the cursor, you have the key for the node so you can easily address it using the Nodes collection. This will be much faster than scanning the TreeView node by node looking for the desired text, especially if the TreeView has a lot of nodes.
Doug
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only