I’m binding a table to a ObservableCollection,
ObservableCollection<MyObject> Items { get; protected set; }
but the table doesn’t seem to update (understandably so) when I change the properties one of the items in the collection. How to notify the ObservableCollection that I have changed one of the items’ property?
MyObject item = Items.FirstOrDefault(obj => obj.Entity.ID == x);
item.Description = something; //what should I do so that the view will be updated accordingly?
The type of the item instances in the
ObservableCollectionwill need to implementINotifyPropertyChanged. For example, if you have anObservableCollection<MyObject>, thenMyObjectwill need to implementINotifyPropertyChanged.See here – http://msdn.microsoft.com/en-us/library/ms229614.aspx