Listview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zulander@gmail.com

    #1

    Listview

    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("H ELLO")
    xitem=nothing

    thank you

  • Herfried K. Wagner [MVP]

    #2
    Re: Listview

    <zulander@gmail .comschrieb:
    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.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...