Listview Help

ton_cut345

New member
Joined
Nov 20, 2007
Messages
2
Programming Experience
1-3
Hi,

I don't know if im in the right forum container. anyway.

I have a problem in my listview.

I have a listview with view of details. 6 columns. everytime i add an item in my listview, I want first to check if the listview has this item. if yes it adds 1 to a column of quantity. but if no it adds a new item to my listview.

ex. 6 columns "ID, barcode, description, quantity,price,total" respectively
if I add new item it scans first if the listview has this kind of barcode. if "true" i adds 1 quantity in quantity column. if "false" it adds new item.

anybody knows how to search string with in a specific column? and updates the specific column?:(
 
Thread moved to Listviews forum.

ListView has a FindItemWithText method you should look into. You can also check all ListViewItem objects in Items property of ListView.
 
VB.NET:
Expand Collapse Copy
for each lvi as listviewitem in listview123.items
   'here you work with each 'lvi' listviewitem
next
Check documentation for ListViewItem class.
 
Back
Top