I am receiving an error after adding new data.
My SfDataGrid is bound to EF core database via CollectionViewSource. In my application I have input area where user enters data and when completed presses button to add data to database context. It all work data is being added and it shows up in DataGrid as new line.
I also have a checkbox to set filter for one of the columns in the datagrid. When application loads and data is displayed from database it behaves correctly.
However, when I add new data and check the checkbox it shows me an error: "System.ArgumentException: 'Object of type 'FilteringExample.User' cannot be converted to type 'Castle.Proxies.UserProxy'.'
I have replicated part of application and attached an example.
When you run the example make sure ConnectionString is valid for your VS loacaldb. Database will be seeded with example data.
When run inspect the behaviour of the check box. Add some data and try the checkbox again.
Attachment:
FilteringExample_8185f685.zip