paul aziz

paul aziz

  • 1.6k
  • 9
  • 467

Two way Databinding with entityframework 6

Jun 29 2020 5:16 AM
Hello everyone
 
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 GetCustomerListViews => _unitOfWork.CustSups.GetCustomerListViews();
 
Is there a way to achieve two way binding with entityframework?
 
Thanks in advance for your assistance 

Answers (2)