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