|
-
Oct 29th, 2008, 11:02 AM
#1
Thread Starter
New Member
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.
-
Oct 29th, 2008, 05:56 PM
#2
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
 
-
Oct 30th, 2008, 09:32 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|