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
Divers
Thread ID:
00856086
Message ID:
00856124
Vues:
12
Slava,

>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?

Good question...the problem is the behavior that adds a new record is built into the New button and there's no way to turn it off. I'll add logic to the behavior buttons that turns off the default behavior when the button's BindingFlag property is set to false, and that will address the problem in the next release. I plan to do a release sooner than later to release the localization forms anyway. If you're interested, I can get you an early release!

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform