CollectionChanged event not working RRS feed

  • Question

  • Hi, I'm trying to catch the CollectionChanged in my wpf client app with the following code:

    DataServiceCollection<EPODServiceReference.DLN_DeliveryNotes> dataServiceCollection = 
          new DataServiceCollection<EPODServiceReference.DLN_DeliveryNotes>
                (from d in dsc.DLN_DeliveryNotes.Expand("STA_Status") select d);
    //Adding event
    dataServiceCollection.CollectionChanged += 
          new NotifyCollectionChangedEventHandler(dataServiceCollection_CollectionChanged);
    void dataServiceCollection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
          throw new NotImplementedException();

    but for some reason the event is not firing when I change something in the collection.

    am I missing something?

    Any ideas?


    Tuesday, March 9, 2010 2:36 PM


  • Looks like the event fires when I do a dataServiceCollection.add() so the problem is not the event not firing its
    my understanding of how the context, dataServiceCollection and the datagrid all fits together : \

    • Marked as answer by Louw Grobler Wednesday, March 10, 2010 8:45 AM
    Wednesday, March 10, 2010 8:45 AM