Question

when i remove an item from dataCollection using RemoveAt(index) it's removed, but when i try to remove another item in the list the item is not removed i do have a listBox that has ListBoxElementsin it and the data is set to it using datacollection binding ..... so when i need to remove an item i remove it from the datacollection and the view is refreshed automatically, but when i try to remove another item after it, the view still the same and the item is not removed

DataCollection2.RemoveAt(index);

No correct solution

OTHER TIPS

When using binding, make sure you call the OnPropertyChange event, passing it the name of the changed property (in your case, "DataCollection2").

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top