Saturday, December 13, 2008

Remove selected items from listview in C#

I killed some time figuring this out myself though the solution was there on the first link given out by google..

thanx to the guy who posted this one..

list is a listview here...

while (list.SelectedItems.Count > 0)
{
list.Items.Remove(list.SelectedItems[0]);
}

vaibhav

No comments: