TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shah
NA
42
0
How to remove specific item from ListView
May 4 2007 5:45 AM
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
Reply
Answers (
1
)
I am loading a 3rd party dll which returns string value when called from VB.Net but not working in C# .
Absorbing Web Services