Search code examples
c#databasewpformormlite-servicestack

Update WPF datagrid after changes happen in the sqlite database


I'm trying to update my datagrid after I update/add/delete items from the database. Should I create a thread running in a loop and query the database?

I'm using servicestack.ormlite


Solution

  • No. Look at ObservableCollections, they basically do that you want. Need your model to implement INotifyPropertyChanged for it to work.