Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Deleting
Message
De
15/07/2013 21:10:48
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01578432
Message ID:
01578491
Vues:
46
>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.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform