title: Category Ordering In Xceed PropertyGrid
body: <p>I am using <strong>PropertyGrid of Xceed</strong> 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 <code>[PropertyOrder(n)]</code>. I also wanted to sort the categories so, I tried using <code>CategoryOrder</code> like <code>[CategoryOrder("General", 0)]</code> but it shows the following error:</p>
  
  <blockquote>
    <p>Error 2   Attribute 'CategoryOrder' is not valid on this declaration type. It is only valid on 'class' declarations.</p>
  </blockquote>
  
  <p>Am I using it wrong?
  The code provide below is just a sample to show how I am using this.</p>
  
  <pre><code>[Category("General")]
  [CategoryOrder("General", 0)]
  [DisplayName("XValue")]
  [Description("Value of X-Coordinate")]
  [ReadOnly(true)]
  [PropertyOrder(1)]
  
  [Category("Advanced")]
  [CategoryOrder("Advanced", 1)]
  [DisplayName("Collision")]
  [Description("Collision")]
  [ReadOnly(true)]
  [PropertyOrder(1)]
  
  [Category("Others")]
  [CategoryOrder("Others", 3)]
  [DisplayName("Traffic")]
  [Description("Traffic at a point")]
  [ReadOnly(true)]
  [PropertyOrder(1)]
  
  [Category("Special")]
  [CategoryOrder("Special", 2)]
  [DisplayName("Special cases")]
  [Description("Contains the special cases and files")]
  [PropertyOrder(1)]
  </code></pre>