Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot edit grid properties on subclassed form
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01327604
Message ID:
01328033
Views:
10
Maurizio,

>I'm trying to make a custom template form, something like mmMaintenanceForm, and here is the problem.
>
>To this template form I added a mmDataGridView named grdList with the modifier set as protected (have tryed even public) as other controls on this form.
>On the subclassed form, in the designer, all properties of grdList are gray, so I cannot set or change them.
>
>With mmDataGrid it's working OK, but only if the modifier is set as protected or public, If it's set as private then all properties are gray, and that's OK.
>
>So is there a way to use mmDataGridView that way?

I think something else is going on here. If you add any control—whether it’s an MM .NET control or not—to a form, if it’s set as protected, you should be able to access and change its properties in a subclass. You can see that this does actually work for mmDataGridView since this is the control that is on mmMaintenanceForm, which you can subclass successfully.

Best 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
Next
Reply
Map
View

Click here to load this message in the networking platform