In Focus
MOBILE: HTML 5 vs. Native Apps
Istanbul Chapter May 2013 2nd Seminar Announced : Learn WinJS, Windows Store, MVC
ANNOUNCEMENT: April 2013 Month Winners
Email :
Password :
Remember me?
Forgot password
Technologies
Monthly Leaders
ASK A QUESTION
C# Programming
Multi-threading
Microsoft Surface
Community Services
Java
.NET General
Office Interoperability
ReFS
Current Affairs
JQuery
Active Directory
Printing
Silverlight 5
Fun and Jokes
JSP
ADO.NET & Database
Project Management
WCF
Job Opportunities
Multimedia, Graphics, Flash
AJAX & Atlas
Remoting
Windows 8
Leadership
PHP
Algorithms & AI
Reporting
Windows Azure
Mac for Windows
Social Networking
Arrays & Collections
Robotics and Hardware
Windows Store Apps
Microsoft Feedback
TypeScript
ASP.NET & Web Development
Security & Cryptography
Workflow Foundation
Open Source Projects
Web Hosting
C# Language
Setup & Deployment
WPF
Operating Systems
Website Management
C# References
Sharepoint
XAML Language
Paid Projects
Windows Azure
CLR & .NET Internals
Speech & Voice Recognition
Site and Forums Feedback
Prizes, Awards, MVP
Windows Phone 7
COM Interoperability
Tablet PC
Announcements
Students & Beginner Projects
Database
Custom Controls
Testing and QA
Author Guidelines
Test Category
Database General
Design and Architecture
Visual Basic .NET
Bugs and Problems
Training & Certification
Oracle
Embedded Development
Visual C++
Forums Feedback
Web Development
SQL
Enterprise Development
Visual Studio 11
Site Feedback & Suggestions
Advertising, Marketing, SEO
SQL Server
Games, DirectX, and XNA
Visual Studio 2010
Site Spams
Android
Products
GDI+ and DirectX
Web Services
Miscellaneous
Cloud Computing
Office 2013
General
Windows Forms
.NET Books
Expression Tools
Products
LINQ
Windows Services
Ask the Author
HTML 5
SharePoint 2013
Migrating to .NET
Cutting-Edge
Career Advice
HTML, JavaScript, CSS
Windows 8
Mobile Development
.NET 5.0
Coffee, Chai Lounge
iPhone, iPad
Forum guidelines
Home
»
C# Language
»
How to remove specific item from ListView
Author
Question
shah
How to remove specific item from ListView
Posted on: 04 May 2007
I am trying to remove item from ListView but when i click on remove it doesnt remove the last item or in the middle but when i select the first item it removes. How is it possible to remove any selected item in the list? [code] private void removeBtn_Click(object sender, EventArgs e) { for (int i = scheduleListView.SelectedItems.Count - 1; i >= 0; i--) { if (scheduleListView.Items[i].Selected) { scheduleListView.Items.Remove(scheduleListView.Items[i]); } } } [/code] Thanks
shah
Reply
Quick Reply
Report a Spam
Our Recommended Solutions
Grouping ListView items dynamically
How do I Check for Duplicate Items in a ListView?
Working With List<> and Operations Performed in List<>
How to remove all items of a Dictionary with C#
How to remove an Item from a C# List
How to remove an item of a Dictionary with C#
Remove Duplicate Items From Generic Collection
How to Remove C# List Items
ListView in C#
ListView in C#
[ + ]
Author
Reply
shah
0
0
Re: How to remove specific item from ListView
Posted on: 04 May 2007
It worked. Thanks
shah
Reply
Quick Reply
Quick Reply:
SEARCH ANSWERS
All
C# Programming
Cutting-Edge
Site and Forums Feedback
Miscellaneous
Web Development
Database
Products
Any Word
Exact Word
Our recommended forum posts
how to retrieve specific row from database in gridview?
in my grid view i place 1 dropdownlist fill with some items
Selected row from gridview to dropdown
Listview scroll bar - How do I know user has clicked listvie
how to run .aspx page in win xp sp2 iis
geting page id and class at the same time to display a DIV
Size Reduced for Images in PDF & Improved Images to PDF Con.
Popup search window
edit And Delete linkButton for datalist
repeation when retrieve radiobuttonlist value for editing
HOT QUESTIONS
Import/Export Generic List Objects
C# read xml data information
how to sort the date in dd mm yyyy
C# Binaryreader Position
javascript for submit form without using submit button
Create List accessible for other classes
Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)
mathematical euation
About Textbox
Congratulation Vinod Kumar
SPONSORED BY
DynamicPDF ReportWriter Suite
PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.