Friday, 5 August 2011

Silverlight 4 DataForm EditEnd(ing). Your current item is not current if you use AutoCommit=true.

Stumbled onto this strange one today.  My DataForm EditEnding and EditEnded events are being caught, and I’m using that to push my data across to my web server.

Unfortunately, the CurrentItem does not point to the item you are editing, as it has been moved onto the new item you’ve navigated to.  Strangely though, the CurrentIndex is still pointing to the correct index.

However, as everything seems to be in an inconsistent state, I’ve instead chosen to store the CurrentItem when BeginningEdit is raised.

No comments:

Post a Comment