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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listview question 1

Status
Not open for further replies.

bsimbeck

Programmer
May 2, 2003
44
US
I have a list view with 4 columns one of them is called ID. I need to get the row from the listview and get the id from the row selected when a button is pressed.

How exactly do I the data from there?

Thanks!

Branden
 
Below code might help u.
identify the IDs index value and use the below code accordingly

LstvwEmp.SelectedItems.Item(0).Text()-->parent ---first coloumn
LstvwEmp.SelectedItems.Item(0).SubItems(1).Text-->subitem 1
--second coloumn
LstvwEmp.SelectedItems.Item(0).SubItems(2).Text-->sublitem 2
--third coloumn

ok
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top