2
Answers

Two way Databinding with entityframework 6

Photo of paul aziz

paul aziz

4y
575
1
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)