G
Guest
I have an application which uses the PropertyGrid to display
highly-customised dynamic data using ICustomTypeDescriptor. I need to be able
to display the properties within categories with the order of both the
categories and properties being programmable.
I can control the order of properties by setting PropertyGrid.Sort to
Categorized (which displays properties within each category in the order they
are returned from ICustomTypeDescriptor.GetProperties), but I can find no way
of controlling the order of the categories themselves. They always seem to be
displayed in alphabetical order independent of the order in which the
properties are returned.
Is there any way to override this category order?
highly-customised dynamic data using ICustomTypeDescriptor. I need to be able
to display the properties within categories with the order of both the
categories and properties being programmable.
I can control the order of properties by setting PropertyGrid.Sort to
Categorized (which displays properties within each category in the order they
are returned from ICustomTypeDescriptor.GetProperties), but I can find no way
of controlling the order of the categories themselves. They always seem to be
displayed in alphabetical order independent of the order in which the
properties are returned.
Is there any way to override this category order?