views:

43

answers:

1

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
Thans that did work as I needed.
No problem. Can you mark as answer then?
Kent Boogaart