title: Is it possible to hide an enum value from a PropertyGrid?
body: <p>I'm working with the <code>PropertyGrid</code> control and using the <code>SelectedObject</code> property to display data within the <code>PropertyGrid</code>. Some of the properties in my grid are enum types. What I'd like to be able to do is hide some of the selections within the enum from the user. Take the below example: I would like to hide the enum of "Error" from the user. Is there a way to do this?</p>
  
  <pre><code>[TypeConverter(typeof(PropertySorter))]
  public class Settings
  {
      public enum FooType { Type1, Type2, Type3, Type4, Error };
      private FooType fakeProperty = FooType.Type1;
  
      public FooType FakeProperty
      {
          get { return fakeProperty; }
          set { // Do Something }
      }
  }
  </code></pre>
  
  <p>And I am displaying the data in the <code>PropertyGrid</code> by calling:</p>
  
  <pre><code>myPropertyGrid.SelectedObject = mySettings;
  </code></pre>