Edit Level Mismatch in Copystate

Edit Level Mismatch in Copystate

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


vensulu posted on Sunday, November 15, 2009

I am using CLSA 3.0 in my application to provide N-level undo feature and I am using WPF as my GUI application.

I am getting error messgae "EditLevel mistmatch in copystate" -- I tried to debug the issue and it is little strange, the fisrt time i invoke my appllication and make chnages i dont get any error , it works fine but seconde time when i try to edit during the call to BeginEdit() which causes the problem.

I tried to debug the code and found the root cause being the child Editlevel is greater then the Parent EditLevel, I am not sure how this can happen and how to solve this poroblem.

Help required , as how to slove this problem or find the root cause for this problem.

 

sergeyb replied on Sunday, November 15, 2009

Is this happening when you use DataGrid?

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: vensulu [mailto:cslanet@lhotka.net]
Sent: Sunday, November 15, 2009 10:59 AM
To: Sergey Barskiy
Subject: [CSLA .NET] Edit Level Mismatch in Copystate

 

I am using CLSA 3.0 in my application to provide N-level undo feature and I am using WPF as my GUI application.

I am getting error messgae "EditLevel mistmatch in copystate" -- I tried to debug the issue and it is little strange, the fisrt time i invoke my appllication and make chnages i dont get any error , it works fine but seconde time when i try to edit during the call to BeginEdit() which causes the problem.

I tried to debug the code and found the root cause being the child Editlevel is greater then the Parent EditLevel, I am not sure how this can happen and how to solve this poroblem.

Help required , as how to slove this problem or find the root cause for this problem.

 



msrs_it replied on Friday, September 10, 2010

Make sure that your are unbinding any bindingsources in your UI project before using ApplyEdit() or CancelEdit().

Copyright (c) Marimer LLC