Solved

select an item in a tree view control

Posted on 2004-04-22
3
262 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
[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
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 250 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

688 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