I've successfully set up a PropertyGrid using custom editors and type
converters. They work very well. However, I have a spot where I want to
generate the TypeConverter converter entries on the fly (from a
database). So far, I can't seem to find a way to do this. The
PropertyGrid wants to reference a TYPE, not an array of strings. You
can make a custom type that inherits StringConverter and overloads
GetStandardValues, and that's fine. But those types are fixed. It still
references the TYPE, not an object of the type. (An object of the type
would obviously let me return a custom list by storing the list in an
internal ArrayList or similar.)
The methods in the inherited StringConverter aren't static, so unless
there's some weird magic going on, clearly the PropertyGrid is
instantiating an object of its own of the type I provide, then calling
the overloaded methods. Is there any way I can trick it, and give it an
object instead of a type?
Thanks,
Chad