2-Way databinding with Entity Framework and WPF DataGrid

Posted by Mike Gates on Stack Overflow See other posts from Stack Overflow or by Mike Gates
Published on 2010-04-23T17:52:50Z Indexed on 2010/04/23 17:53 UTC
Read the original article Hit count: 338

Filed under:
|
|

I'm having trouble adding an Entity Framework entity to a ObjectContext's EntitySet automatically using the WPF 4.0 DataGrid's add functionality. Here's the setup:

DataGrid-->BoundTo-->ListCollectionView-->BoundTo-->EntitySet

When I interactively add a row to the DataGrid, the EntitySet does not have a new entity added to it. Updating the row's cell data does in fact update the bound entity's properties, however.

Any idea what I could be doing wrong?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about wpf