BrowsableAttributes Takes Only One Value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Sm9obiBPbGJlcnQ=?=

    #1

    BrowsableAttributes Takes Only One Value

    I am trying to set the PropertyGrid. BrowsableAttrib utes to multiple values
    of CategoryAttribu te but if I use more then one no properties are displayed.
    Code below--
    Attribute filterattribute 1=new CategoryAttribu te("TestJ1");
    Attribute filterattribute 2=new CategoryAttribu te("TestJ2");
    propertyGrid1.B rowsableAttribu tes=new AttributeCollec tion(new Attribute[] {
    new CategoryAttribu te("Appearance" ),
    new CategoryAttribu te("Layout")}) ;
    propertyGrid1.S electedObject=t his;
    propertyGrid1.R efresh();

    I have seen other references to this problem on the web.

    Is there a solution or workaround for this problem?

    Thanks.

    --
    John Olbert

  • Marc Gravell

    #2
    Re: BrowsableAttrib utes Takes Only One Value

    I suspect you would have to write your own property-grid tab from
    scratch and override the method that gets the properties (probably
    GetProperties() , I can't recall exactly). There are examples of
    writing a property-grid tab on MSDN.

    Marc

    Comment

    • =?Utf-8?B?Sm9obiBPbGJlcnQ=?=

      #3
      Re: BrowsableAttrib utes Takes Only One Value


      --
      John Olbert



      "Marc Gravell" wrote:
      I suspect you would have to write your own property-grid tab from
      scratch and override the method that gets the properties (probably
      GetProperties() , I can't recall exactly). There are examples of
      writing a property-grid tab on MSDN.
      >
      Marc
      >
      >

      Comment

      Working...