By Daniel Essin - 8/23/2006
I put a grid on a form with a bindingnavigator and deleted some rows.
I got a message from the grid (DevExp) asking if I want to delete each row and I got another message from SF asking the same thing. No changes occurred in the database. When I went to close the form, SF asked me if I wanted to save. I clicked yes and then got the following exception in Business Layer:
MicroFour.StrataFrame.Business.BusinessLayerException was unhandled by user code
IsTransient=False
Message="An error occurred while saving an the data to the server."
Source="MicroFour StrataFrame Business"
StackTrace:
at MicroFour.StrataFrame.Business.BusinessLayer.SaveByForm(Boolean Transactional, String TransactionKey)
at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save(Boolean Transactional, String TransactionKey)
at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save()
at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnFormClosing(FormClosingEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
1 - Why did I get the exception?
2 - How do I get the deletes to take effect immediately?
3 - How do I make the SF "ok to delete" prompts go away?
Thanks,
Dan
|
By StrataFrame Team - 8/24/2006
The SF delete prompts can be turned off by setting the AutoShowDeleteConfirmation property on the form to False. As for the exception that you received... it's not very descriptive, can you get the InnerException from the BusinessLayerException?
|
|