ObservableCollection binding RRS feed

  • Question

  • hi,

    my itemsSource is ObserableCollection<T>.

    whenever i refresh this collection from linq query
    (which means it's new collection)
    i lost the binding, and should programtically do "treeVIew.ItemsSource = MyObservableCollection;

    is there any way to solve it?

    And another one, Please:
    can i bind the collection to Insert, UPdate,Delete methods, in order to automatically update the new entries on the db?

    Thursday, June 18, 2009 9:29 PM


  • Hi Asaf_abypt,

    is your MyObservableCollection property raising the PropertyChanged event? If not the ItemsSource is not aware of the new collection.

    Hope this helps.
    Thursday, June 18, 2009 11:10 PM

All replies