Solved

TreeView Windows Control - "Find" method

Posted on 2006-06-22
4
272 Views
Last Modified: 2007-12-19
I'm using the Windows TreeView control and like the "Find" method.  I'm mapping an OleDbDataReader, and it's very useful to locate parent nodes with this "Find" method.

For some reason, it's not documented anywhere in the MSDN that I can see.  So I'm interested to know if anyone has any experience with this method, and whether there are any potential problems that I should be aware of.

jkavx
0
Comment
Question by:jkavx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16963822
1) .NET version?

2) I am assuming 2005, since I don't think 2003 has the Find method.

Bob
0
 
LVL 11

Expert Comment

by:vo1d
ID: 16963914
the treeview does not have a find method implementation.
maybe it is a third party treeview or an extra implementation of someone else?
0
 
LVL 11

Accepted Solution

by:
vo1d earned 125 total points
ID: 16963942
oh sorry, you mean this one: this.treeView1.Nodes.Find(...), correct?
you have to take a look at the msdn description of the treenodecollection.
the find method is implemented there.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16963949
2005:

this.treeView1.Nodes.Find(key, searchAllChildren);

Bob
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question