Hi. I have user control to which I bind a viewmodel, this implements the INotifyPropertyChanged, thru the datacontext, this has a property that is a IList that I bind to the itemsdatasource of a grid, then on the code, in another class I add some values to the list, but the UI doesn't reflect this change although in debug I can see that the datagrid has this items added but they don't appear in the UI, can anybody help me, I can't see what is the problem.
+3
A:
ObservableCollection<T>
is your friend. It implements INotifyCollectionChanged
, saving you the trouble.
HTH,
Kent
Kent Boogaart
2010-02-06 15:09:40
Thans that did work as I needed.
2010-02-07 09:14:31
No problem. Can you mark as answer then?
Kent Boogaart
2010-02-07 09:33:15