I populate a DataGrid from a CollectionViewSource. Each row has a delete button.
On delete i’m deleting a row from the DB.
My problem is that the DataGrids’ UI doesn’t update.
How do i clear the deleted row from the DataGrid?
Any suggestions, please?
Ensure that the underlying collection implements from INotifyPropertyChanged interface, and OnPropertyChanged is called when the row is deleted.
ObservableCollection is a colelction that implements INotifyPropertyChanged so consider using that as an underlying collection object.
MSDN Remarks on CollectionViewSource