Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Deleting
Message
 
To
15/07/2013 08:48:21
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:
01578485
Views:
53
Frank,

>I'm having a problem with getting the Delete option to work on a XAML window. When I press the Delete button nothing happens. I am figuring it must be something to do with the fact that the screen's datacontext is set like this:
>
>this.DataContext = this.CourierAirWayBill.DataSet.Tables[this.CourierAirWayBill.TableName].DefaultView;
>
>rather then being set to a BO.
>
>If that is correct, could you let me know what code I should put in to override the default Delete button's behaviour, please?

I recommend setting a breakpoint in the Delete method of the WPF window to see if it's firing. If it is, you can step through the code to get a clearer picture of what's happening.
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform