Results 1 to 3 of 3

Thread: Listview (How items get populated)

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    7

    Listview (How items get populated)

    I have an inventory program that when you scan an item it shows in the listview box. Right now when you scan it puts the next item under the first item. What I want to do is when the next item is scanned it will put it above the current item that is listed. So it shows you a list of items scanned with the last one scanned will be at the top of the listview.

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Listview (How items get populated)

    I'm not sure how you are adding items to the ListView, but you are probably using ListView.Add somewhere. Change that to ListView.Insert(0,<whatever) and you should get your solution. Insert will insert the new item at the specified index, which in your case, is 0.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    7

    Re: Listview (How items get populated)

    Thanks Shaggy..

    That did the trick..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width