I use Dim All_PriceLists As System.Collections.ObjectModel.ObservableCollection(Of BSPLib.PriceLists.PriceListPrime)where PriceListPrimeimplements Inotify for all properties in it.
I attached All_PriceListto the datagrid as DataGrid1.ItemsSource = All_PriceLists, but when I do All_PriceLists=Getall()where Getall reads and receives data from the database, the datagrid is not updated.
It only updates when I crack it as follows:
DataGrid1.ItemsSource = Nothing
DataGrid1.ItemsSource = All_PriceLists
Could you tell me where I did wrong or what I have to implement. Thank.
source
share