property items order

Grids for WPF Forum

Posted 14 years ago by Mary Fontana - Rudolph Technologies
Avatar
I don't want the propertygrid items sorted so I am doing propGrid.SortDescriptions.Clear().
I want the property items in the order they are defined in the class.
But then the subclass property items are displayed before its super class properties. Is there any way that these would be added at the end?

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mary,

If you turn off sorting then you are at the mercy of .NET reflection and/or type descriptor. It doesn't provide any guarantees as to the order of the properties. But the order you are seeing does make sense, since it would most likely return the properties for the given type, then move up it's base classes and reflect their properties.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.