473,396 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to delete seleted items from listview in VB.NET

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
Nov 21 '05 #1
1 11773
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

"Mamatha" <ma***********@yahoo.com>
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

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Silvia | last post by:
Hi, I have a program that capture images and put this into a listview (using imagelist), the problem is when I delete de image the listview, when do that and capture another image, the image...
7
by: harry | last post by:
I want to remove all items in a drop down list, surely this is possible in one operation? All I can find is to set every option in the list = null
0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
9
by: C# Learner | last post by:
Has anyone else noticed ListView's unbearable flickering? I have a project containing a list-view with the following: - View: Details - Columns: 5 The following code causes the list-view...
0
by: Silvia | last post by:
Hi, I have a program that capture images and put this into a listview (using imagelist), the problem is when I delete de image the listview, when do that and capture another image, the image...
0
by: Mamatha | last post by:
Hi I have a listview control in VB.NET application. In that list view,i have displayed data like rows from database. For example columns are A,B and C. A B C xx 0 0
1
by: Atnet | last post by:
Hello, Using VB 8 Express. I have a form that is reading and navigating via the bindingnavigator my access database. It's a computer inventory for work. I have it going through the database...
7
by: sonia.sardana | last post by:
I try the foll. code--- protected void Button1_Click(object sender, EventArgs e) { int i; for (i = 0; i <= ListBox1.Items.Count - 1; i++) { ...
6
by: akadeco | last post by:
Hi I need to write a program and part it's functionality is to delete unique items in an array. That is, delete items in the array that only occur once. I also need to delete the first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.