Duplicate Record on Save
Old forum URL: forums.lhotka.net/forums/t/4742.aspx
Pieter posted on Wednesday, April 23, 2008
Hi All,
I have a very weird error. I'm binding to a EditableRootListBase object, and using the BindingNavigator.
On the BindingNavigator's SaveItem_Click event I call the SaveContract method.
It saves fine but for some reason it creates 2 records. This only happens when I use winforms databinding. When I use the objects .Save method directly it only creates one record.
I'm using CSLA 3.5 also tried it with 3.0.4 and 3.0.5.
Any ideas? I'm stumped....
Thanks!
Pieter replied on Wednesday, April 23, 2008
Fingers in gear, brain in neutral.
I just used the EditableRootListBase.SaveItem and it worked.
Copyright (c) Marimer LLC