Sorting Members in C1PropertyGrid

By default properties and methods are listed alphabetically in the C1PropertyGrid control, similar to the Alphabetic view in the Visual Studio Properties window. However, you can customize the way members are listed by setting the PropertySort property. The C1PropertyGrid control can sort the properties in any of the following ways:

      Alphabetical: the properties are sorted in an alphabetical list. This is the default setting and appears similar to the Alphabetic view in the Visual Studio Properties window.

      Categorized: the categories are displayed in an alphabetical list, the properties in each category are displayed in no particular order (the order in which are retrieved from the SelectedObject).

      CategorizedAlphabetical: the categories are displayed in an alphabetical list; the properties in each category are displayed in alphabetical order. This appears similar to the Categorized view in the Visual Studio Properties window.

      CategorizedCustom: the categories are displayed in an alphabetical list; the properties inside each category are displayed in a custom order defined by the user using the Display.Order attribute.

      Custom: the properties are displayed in custom order defined by the user using the Display.Order attribute.

      NoSort: properties are displayed in the order in which they are retrieved from the SelectedObject.

Set the PropertySort property to one of the above options to customize the way the property grid is sorted.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.