Select first item in TreeView control? 
Author Message
 Select first item in TreeView control?

Hi all,

I'm loading a treeview control with a bunch of items. I have sorting
enabled. After loading, I want to select the first item in the list.
The problem is that, unlike a regular ListBox control, the index
stays with the item when it's sorted. So, the item in the TreeView
with index 1 isn't necessarily the first item when the list is sorted.

I've tried everything I can think of. Can someone tell me how to
just select the first item in the list so the NodeClick event will
trigger. Thanks.

 - Dave



Tue, 07 Dec 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. listview control first item auto selected

2. How to keep item selected in Treeview control?

3. First Visible item in Treeview

4. Treeview and first visible item

5. automatically scrolling a listbox down to the first selected item

6. DBCombobox : selecting first item

7. DBCombobox : selecting first item

8. ListView: Selecting first item in list

9. Selecting the first item of a listview

10. Selecting the first item of a listview

11. Selecting items in a DB-list and passing fields from selected rec to a control

12. ListView control - Keeping selected items looking selected

 

 
Powered by phpBB® Forum Software