I have a model that is bound to the view Listview using viewmodel observablecollection.
The model implements INotifyPropertyChanged
interface. So if there is any change in any of the properties the view is getting updated.
But if any new row gets added to the database the view is not getting updated. In my case a third party webservice writes data to the database. so whenever data gets added/deleted i want to update the UI.
How can I achieve this?
ViewModel.cs
Public ObservableCollection<Employee> EmployeeList {get; set;}
View:
Listview.ItemsSource = viewmodel.EmployeeList