Selecting the first item of a listview 
Author Message
 Selecting the first item of a listview

Hi there,

I found the following on the VB5 Help file :

To programmatically select a ListItem object, use the Set statement
with the SelectedItem property, as follows:

Set ListView1.SelectedItem = ListView1.ListItems(1)

After populating the listview on my Form Load routine, I wanted to
select the first item automatically. So I did what the help told me
but it doesn't work.  I even tried a

ListView1_ItemClick ListView1.ListItems(1)  

at the end of my form load routine. Well, it does select the first
item but it does not highlight it so the user can see it selected.
What am I doing wrong here ?
Thanks a lot,

Wagner Maxsen



Sat, 18 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Selecting the first item of a listview

2. listview control first item auto selected

3. ListView: Selecting first item in list

4. jump listview to the hilight item (selected item)...

5. Why does the previous selected item in a ListView get selected for a short moment

6. ListView control - Keeping selected items looking selected

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

8. DBCombobox : selecting first item

9. Which is the first event if you click on an item in a ListView

10. DBCombobox : selecting first item

11. Select first item in TreeView control?

12. ListView control: can't insert items before the first one

 

 
Powered by phpBB® Forum Software