Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete Button binding problem
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00805171
Message ID:
00805351
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform