WPF DataGrid Not Updating
Hello i have a datagrid and a button on a window. I want to increase a value on datagrid by pressing that button. Value increases on code i can see that with debug but there is no changes on ui.
2 Replies
ObervableCollection only notifies the UI about adding and removing items, not about changing properties on items already inside the collection. You usually do not need to call PropertyChanged on an ObservableCollection yourself.
Either implement INotifyPropertyChanged also for the InventoryItem class or (if you cannot or don't want to change your model class) create another viewmodel class for a single inventory item.
Thank you for your help