Listview

Z

zulander

Is there a way to set a index of a item when you add ? i want to add
the item at the index 0, which mean everytime i would i it would be at
the top of the list


Dim xitem As ListViewItem
xitem = lv.Items.Add("HELLO")
xitem=nothing

thank you
 
H

Herfried K. Wagner [MVP]

Is there a way to set a index of a item when you add ? i want to add
the item at the index 0, which mean everytime i would i it would be at
the top of the list

You may want to use 'ListView.Items.Insert' to insert the item at a specific
position.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top