Hello,
I want to delete rows from listview in WPF. I am getting this error,
"Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead."
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Piyush PansuriyaPosted Jan 5, 2015, 4:37 AM
If you want to delete rows from listview, You have to remove object from ItemSource which you had assign to listview.
Ex:
lstview.ItemSource = Coll;
While Removing : Coll.DeleteObject(lstview.SelectedItem As obj);