- Notifications
You must be signed in to change notification settings - Fork0
Sort object properties in a custom order in the WinForms Property Grid.
License
NotificationsYou must be signed in to change notification settings
DevExpress-Examples/winforms-property-grid-custom-sorting
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The WinForms Property Grid control sorts properties by display name. This example handles theCustomPropertyDescriptors event to sort object properties in a custom order:
voidpropertyGridControl1_CustomPropertyDescriptors(objectsender,CustomPropertyDescriptorsEventArgse){if(allowCustomSorting&&e.Context.PropertyDescriptor==null){e.Properties=e.Properties.Sort(newstring[]{"Property5","Property4","Property3","Property2","Property1"});}}
(you will be redirected to DevExpress.com to submit your response)
About
Sort object properties in a custom order in the WinForms Property Grid.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.