I am using property grid with multiple sections. I would like to sort the categories with my preference (not alphabetically or not default). How can i do it?
1 Answer, 1 is accepted
0
Dinko | Tech Support Engineer
Telerik team
answered on 04 Jul 2017, 12:46 PM
Hi Gopinath,
Thank you for your interest in RadPropertyGrid control.
There is not an option to skip the default sorting of the properties. However, you can define your own ordering.
You can try setting OrderIndex property of each property definition. If you define your PropertyDefinitions in XAML, the property can be set directly. In case you are working with auto-generated properties, you can try handling AutoGeneratingPropertyDefinition event and set the OrderIndex there.
You can also check the Order attribute in the DataAnnotation Support example in the desktop WPF Controls Demo application.
Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.