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.
Is
this happening when you use DataGrid?
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
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.
Make sure that your are unbinding any bindingsources in your UI project before using ApplyEdit() or CancelEdit().
Copyright (c) Marimer LLC