Friday, September 11, 2009

Deleting Multiple Selected Items in WPF

Hi,
Many a times while using listbox,listview etc there might be a need to delete the multiple selected items.
This can be easily achieved by the following piece of code

While ControlName.SelectedItems.Count > 0
ControlName.Items.Remove(ControlName.SelectedItem)
End While

Happy Coding :)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.