[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

select an item in a tree view control

Posted on 2004-04-22
3
Medium Priority
?
277 Views
Last Modified: 2013-12-26
Hi!!
Supposing the next tree
A
└--B
    └--C
    └--D
└--E
    └--F
        └--G
└--H
    └--I

Every item in the tree is associated with a number saved in data in the moment to create every item. In this example:
A has associated 1 in data
B - 2
C - 3
   .
   .
   .
I - 9

How to make than giving the number of the data of an item to expand all the tree, because the tree is all collapsed, and then select and highlight the item with the given number?

For your help, thank you very much!!
0
Comment
Question by:tsirakua
  • 2
3 Comments
 

Author Comment

by:tsirakua
ID: 10894879
I think the tree is not good viewed for the special characters.
Here is again:
A
   B
      C
      D
   E
      F
         G
   H
      I
 
 I hope you understand, thank you
0
 
LVL 2

Accepted Solution

by:
bluecomet earned 500 total points
ID: 11049540
To expand all the treeview:

long ll_tvi

ll_tvi = tv.FindItem(RootTreeItem! , 0)

tv.ExpandAll(ll_tvi)

or

you must search the item which you will expand when give a number,

search the item (must search through all the tv), save the handle of the found item (use finditem) and then expand the item (tv.expand(handle))
0
 

Author Comment

by:tsirakua
ID: 11937580
I didn't probe it but thanks for your interest
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

872 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