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 Updating

Status
Not open for further replies.

VBApprentice

Programmer
Oct 4, 2001
14
US
I have a listview with a list of clients. When a client is clicked on, a form is displayed for status code update. Once updated the listview is returned to. My question is this. How can I update this status field on the listview? I do not want to go back to the database for the new information. I was hoping that I can just change the field on the listview.

lvwClient.SelectedItem.Index gives the index of the selected item
lvwClient.SelectedItem.Text gives the ListItem which is the selected item
lvListItems.SubItems(7) is where the status is located in the listview
lvListItems.Index is the index of the last item in the listview

Can I use a combination of these and use SelectedItem.Index to change SubItems(7) to the new status?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top