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

How do I remove a selected item from ListView?

Status
Not open for further replies.

JasonLiew

Programmer
Joined
Oct 15, 2001
Messages
37
Location
SG
I've added a list of items into my listview called "lvwDcrChange". The problem is, i know how to add items but do not know how to remove em'. I wanted to remove a selected item from the list after clicking on a command button called "cmdDelAct". I will be really grateful if anyone could help me with it. THanks a million..

With Regards,
Jason
 
to delete from a listview do as follows
ListView1.ListItems.Remove ListView1.SelectedItem.Index
this should remove the selected Item

so just add this to your command button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top