How to delete seleted items from listview in VB.NET

  • Thread starter Thread starter Mamatha
  • Start date Start date
M

Mamatha

Hi

I want to delete items which i has selected in the
listview ,when i click on delete button,How can i delete
in VB.NET?
If any one knows the solution please let me know,thanks in
advance.

Mamatha
 
Mamatha,

I thought that this one goes forever.

\\\
For Each lsvrow As ListViewItem In lsv.SelectedItems
lsv.Items.Remove(lsvrow)
Next
///

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top