Hi all,
I would like to add properties to the propertygrid control at runtime. There
I would like to specify four things:
a. Property Name
b. Property Value
c. Property Category
d. Property Ordering
Can somebody plz guide me to do this?
Many thanks in advance.
FUnky
Dmytro Lapshyn [MVP] - 22 Mar 2006 09:21 GMT
Hi,
As far as I remember, to customize the list of properties displayed by the
PropertyGrid control, one needs to implement the ICustomTypeDescriptor
interface.
> Hi all,
>
[quoted text clipped - 9 lines]
>
> FUnky
Stoitcho Goutsev (100) - 22 Mar 2006 15:23 GMT
FUnky,
If you want to add/remove properties to/from selected object in the property
grid you can do that from the TypeConverter for the object's type. You need
to implement GetPropertiesSupported and GetProperties methods.
The properties that trigger adding/removing other properties needs to be
attributed with RefreshPropertiesAttribute.

Signature
HTH
Stoitcho Goutsev (100)
> Hi all,
>
[quoted text clipped - 9 lines]
>
> FUnky