M
mark.craft
I've just inherited some code that for the main part works, I've got a
properybag that is used to populate the propertygrid. Some of the
options use type converters as the data comes from Enums or stored
data. These options automatically use a dropdownlist to display/be
edited. This is fine but what I want to do is set the style of the
drop down to dropdownlist, to prevent the user being able to type into
the edit control.
I'm just not quite sure where this can be done. I have some other
options that set the editor attribute (e.g. FileNameEditor) , I tried
setting this attribute on one of the Enum options to a typeof(myClass)
where myClass is a class I wrote that inherits dropdownlist and sets
the style in the constructor. This resulted in the option within the
propertygrid being non editable..
I've searched through a ton of stuff but I cant find any clues.. Any
help gratefully received!
properybag that is used to populate the propertygrid. Some of the
options use type converters as the data comes from Enums or stored
data. These options automatically use a dropdownlist to display/be
edited. This is fine but what I want to do is set the style of the
drop down to dropdownlist, to prevent the user being able to type into
the edit control.
I'm just not quite sure where this can be done. I have some other
options that set the editor attribute (e.g. FileNameEditor) , I tried
setting this attribute on one of the Enum options to a typeof(myClass)
where myClass is a class I wrote that inherits dropdownlist and sets
the style in the constructor. This resulted in the option within the
propertygrid being non editable..
I've searched through a ton of stuff but I cant find any clues.. Any
help gratefully received!