问题 I am using PropertyGrid of Xceed to display characteristics of some elements. There are different categories for element like: General, Advanced, Others, Special. Here, I found that the Xceed's propertygrid sorts the category as well as property in alphabetical order. I was able to sort the properties inside the categories by using [PropertyOrder(n)] . I also wanted to sort the categories so, I tried using CategoryOrder like [CategoryOrder("General", 0)] but it shows the following error: