>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,
there is no Delete method that I can see. The button is defined like this:
<mmwpf:mmButtonDelete
VerticalAlignment="Center"
Margin="0,0,0,10"
Width="100"
x:Name="btnDelete" />
There is a btnDelete method, but it is disabled in the method drop down in the cs file. So I assume it is calling the default MM.NET code, but I do not know how to set a breakpoint and step through in this case.