This project has moved and is read-only. For the latest updates, please go here.


May 16, 2013 at 12:01 AM
Hello all,

I just started using the PropertGrid and have the following question:

Is it possible to disable the automatic sorting of the grid?

The reason is that I have an object with only a few properties and the order of the properties in the class definition as it is makes sense to the user. The automatic alphabetic sorting does confuse the user.

Thanks for any ideas!
May 16, 2013 at 5:04 AM
for custom sort properties use PropertyOrderAttribute:
public string FirstName { get; set; }
public string SecondName { get; set; }
May 16, 2013 at 11:17 AM
Fantastico !

Many thanks,
May 21, 2013 at 12:54 AM
Any chance in the future to support the DisplayAttribute that is available in the ComponentModel.DataAnnotation.dll?

(It contains many handy properties, being one of them the Order int property. It also has a Prompt property for watermarks)
May 21, 2013 at 5:03 AM
support the DisplayAttribute available
[DisplayName("First name")]
public string FirstName { get; set; }
May 21, 2013 at 1:41 PM
Edited May 21, 2013 at 1:42 PM
I know about Xceed's own attribute for sorting properties.

The thing is that I keep many of the classes that define properties to show on PropertyGrid controls in a separated assembly (dll) that does not reference to any WPF assembly, so I was hoping to avoid having to consume the whole toolkit in a dll that uses no WPF controls. And only reference the toolkit in the frontend exe assembly where WPF controls are used.
May 21, 2013 at 3:21 PM
vote for this issue:
May 21, 2013 at 3:26 PM
Done. Thanks!