Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Deleting
Message
From
18/07/2013 08:54:10
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01578432
Message ID:
01578710
Views:
31
>Frank,
>
>>I stepped through the code and it is showing me that no deletion occurs because the code looks for a business object, but my form is bound to a table. (See my first message as to how the form's datacontext is set.)
>>
>>Any ideas on how to handle this scenario?
>
>Did you set the BindingSource property on the mmButtonDelete control on that window? If you are using class MM .NET entities, there needs to be an IgnoreNavigation = true inserted into the call path of the DeleteEntity to prevent the display of the Save Changes dialog (mmBusinessUIHelper.DeleteEntity) This only occurs with business objects that are using the datatable or dataviews.
>
>Best Regards,

Kevin,

no, I did not set the BindingSource property on the mmButtonDelete.

Can you give me an example of how I do that, please?

Once I set that binding source then things will delete properly, or do I need to add in more code to handle the delete myself?

If so could you please provide an example?

Thanks
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform