I actually saw this post but wasn't quite sure how to use the pm.importentities() method to "refresh" anything.
I have two forms, let's call it FormA and FormB. Each form is using its own instance of the PM.
In FormA, I have a grid control that displays the customer listing.
In FormB, I followed the steps suggested in the post (
http://www.ideablade.com/forum/forum_posts.asp?TID=234) in order to sync up data between the two PMs. My "import entities" code looks something like below:
FormAPersMgr.ImportEntities(mModifiedEntityList, MergeStrategy.OverwriteChanges)
FormAPersMgr.ImportEntities(mAddedEntityList, MergeStrategy.OverwriteChanges)
mModifiedEntityList contains modified entities while mAddedEntityList contains added entities that I saved in the PM's Saving event.
Now, after I execute the above two statements, I would expect FormA's PM to have the changes I made in FormB. However, it doesn't.
What am I doing wrong?