I have sfDataGrid bound to ObservableCollection from generic repository with UinitOfWork. But the Grid does not refresh its UI when the datasource changes. I don't know what I am doing wrong.
Below is my code:
sfDataGrid1.DataSource = GetCustomerListViews;
public ObservableCollection<customerlistview> GetCustomerListViews => _unitOfWork.CustSups.GetCustomerListViews();
Is there a way to achieve two way binding with entityframework?
Thanks in advance for your assistance
What I have tried:
I have tried BindingSource and used different Collection type but have not been successful