StrataFrame Forum

Delete verification not showing up

http://forum.strataframe.net/Topic1510.aspx

By Andria Jensen - 6/12/2006

I have created a user control which takes a business object and is sort of like the maintenance strip, but modified to fit what our business wants.  I am using this control on a Form, and everything works great except the verify delete message box does not show up when I call the DeleteCurrentRow.  I tried putting code in the BeforeDelete event on the form and it doesn't get to it.  When I put code in the BeforeDelete for the BO, it DOES hit that code.  So why would the BeforeDelete be getting hit in the BO, but not on the form?  Note:  the UnsavedChangesExist code works fine on the form.
By Trent L. Taylor - 6/12/2006

Andria,

You are calling the Delete directly on the BO, in order to respect all of the form logic, try calling the Delete on the form to see if you get the results you are looking for.