Edit level mismatch in AcceptChanges error

Edit level mismatch in AcceptChanges error

Old forum URL: forums.lhotka.net/forums/t/10958.aspx


fredg posted on Wednesday, December 07, 2011

Hi,

    I have 3 tables "deal", "address" and "property":

          table "property" is child of both "deal" and "address".

   Then I use Entity Framework to create entities from database. 

   I also build the 3 BO inheriting BusinessBase.

 Windows form has some controls databinds to the corresponding datasource, but when I save a change, i get error:"Edit level mismatch in AcceptChanges". 

Can someone tell me what the problem is? Thanks.

JonnyBee replied on Wednesday, December 07, 2011

You must bind/unbind BO and BindingSources properly.

You may read my blogpost here: http://jonnybekkum.wordpress.com/2009/10/20/forms-databinding-the-magic-sequence-of-binduiunbindui/ 

And I also recommend to read the DataBinding FAQ at http://windowsclient.net/downloads/folders/applications/entry1302.aspx

Copyright (c) Marimer LLC