Discussion:
editing properties of derived datagridviews
(too old to reply)
tim jödden
2007-08-15 17:06:03 UTC
Permalink
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
Jack Jackson
2007-08-15 17:28:51 UTC
Permalink
Post by tim jödden
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.

Loading...