Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView vb.net newbie question 1

Status
Not open for further replies.

wraheem

MIS
Jul 19, 2001
62
US
I am creating an app in which data from several boxes are stored into a listview. I have a button to process the data but I am having a heck of a time finding a way to select all of the data in the listview. I am finding repeated examples of how to process data from items that have been selected, but that is only important to me for clearing out selected items.

Any help would be appreciated.
 
Ok maybe I wasn't being clear enough, I apologize. Once data is passed to the listview I have a button that I want to activate a function to work with the data
ie
---listview---
Make Model

Ford F-150
Buick LeSabre


I want the button to select everything in the listview to pass the data to the function. I know about items and subitems, I guess I'm asking how do you loop through all of the items and return their values without those items being selected.

I was thinking of a
for each itm in items()
'process data
next itm

My issue is getting all the items in the listview into items() to begin with...

Thanks chmohan, but I'm not sure how that link is going to help me....
 
For Each Itm As ListViewItem In MyListView
Itm.Selected = True
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top