C
C#•2y ago
Elio

Observable collection

Hello, i'd like to know/understand why the event Collectionchanged isn't triggered when i change a value in my datagrid ? In the following picture we have in the datagrid material an item with the name "mat23", and in the second picture the same thing but after renaming the first material "mat23" to "mat". The datagrid.ItemSource is set to my observableCollection "MaterialObservable".
4 Replies
undisputed world champions
ObservableCollections trigger, when the collection changes. as in items get added/removed/etc. not when one of the items themselfs change 😉
Elio
Elio•2y ago
hum well if it's true then there description isn't good ...
realivanjxツ
realivanjxツ•2y ago
Stack Overflow
Observable Collection replace item
I have a ObservableCollection, I can add and remove item from the collection. But I can't replace an existing item in the collection. There is a way to replace an item and reflect that on my bound
Elio
Elio•2y ago
thanks it seem a bit tricky but i think i've understand 👍
Want results from more Discord servers?
Add your server
More Posts