Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Values in New Row
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Default Values in New Row
Divers
Thread ID:
00856086
Message ID:
00856086
Vues:
65
I am using a mmMaintenanceForm as a base form. Following the new documentation I created a FilterDefaultValues class and HookSetDefaultValues method in the Filters business object. If I create a brand new myButton and put oFilters.NewRow(new FilterDefaultValues(("MyDef1","MyDef2")) into the myButton_Click method, I get what I expect: a new row with my default values. However, I need to use New button that belongs to the base form.
I tried this:
protected override void btnNew_Click(object sender, System.EventArgs e)
 {
    oFilters.NewRow(new FiltersDefaultValues("MyDef1","MyDef2"));
 }
I got three (?) new rows, two of them with my default values and one without them.
How can I keep all functionalities of mmButtonNew, but not create extra new rows?

Thanks in advance

Slava
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform