Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Button binding problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00805171
Message ID:
00805351
Vues:
22
>Thought I'd use the mmDeleteButton and bind it to my child grid on an add/edit Windows form. The button works fine. The problem is if a new row is added to the business object. As soon as the new row is added, the Delete button is disabled (and remains disabled no matter which row of the grid you switch to). I would expect that adding a new row would more than likely enable the delete button than disable it.

I had the exact opposite request from others in different scenarios (they were using a Cancel button to cancel the newly added record), so I'll add a new EnableOnAdd property to the button so you can easily change this behavior. In the interim, you can override the button's StateChangeHandler method to get the behavior you're looking for.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform