editing properties of derived datagridviews
hi
assume i created a user control which contains a datagridview element.
assume i want to derive several custom controls from that control and i want
to edit the properties of the dgv in vs05 at design time (binding
datasources, editing columns and something like that).
currently all properties of the dgv are locked and greyed out - no way to do
this by mouse ;)
is there a possibility to tell the designer to let me edit these properties?
(dgv is not the only control which cannot be edited in similar cases)
thanks
tim
Date:Wed, 15 Aug 2007 12:06:03 -0500
Author:
|
Re: editing properties of derived datagridviews
On Wed, 15 Aug 2007 12:06:03 -0500, "tim jdden" wrote:
>hi
>
>assume i created a user control which contains a datagridview element.
>assume i want to derive several custom controls from that control and i want
>to edit the properties of the dgv in vs05 at design time (binding
>datasources, editing columns and something like that).
>currently all properties of the dgv are locked and greyed out - no way to do
>this by mouse ;)
>is there a possibility to tell the designer to let me edit these properties?
>(dgv is not the only control which cannot be edited in similar cases)
>
>thanks
>tim
For each control in the usercontrol, set the Modifiers property to
Protected. The default is Private, which does not allow access from
derived classes.
Date:Wed, 15 Aug 2007 10:28:51 -0700
Author:
|