PropertyGrid and ArrayList

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marius

    PropertyGrid and ArrayList

    I have a class:

    public class ZType : ICustomTypeDesc riptor
    {
    private ArrayList el = new ArrayList();

    [Editor(typeof(M yCustomEditorTy pes), typeof(UITypeEd itor)), Browsable(true) ,
    Category("Data" )]
    public ArrayList Elements
    {
    get { return this.el; }
    set { this.el = value; }
    }

    .....
    }

    I'm placing this into a propertyGrid and for some machines the setter fails.
    Any ideeas?
    Thanks
  • Vadym Stetsyak

    #2
    Re: PropertyGrid and ArrayList

    it is rather strange situation.
    what do you mean by "strange situation"? are there any exceptions. Is it
    possible that the setter is called an value of other type then ArrayList is
    specified?

    If you have PropertyDescrip tors - check what returns GetPropertyType of the
    PropertyDescrip tor.

    --
    Vadym Stetsyak aka Vadmyst

    "Marius" <Marius@discuss ions.microsoft. com> wrote in message
    news:82F907AD-A87F-4D93-AE41-A80E531D7BB6@mi crosoft.com...[color=blue]
    > I have a class:
    >
    > public class ZType : ICustomTypeDesc riptor
    > {
    > private ArrayList el = new ArrayList();
    >
    > [Editor(typeof(M yCustomEditorTy pes), typeof(UITypeEd itor)),[/color]
    Browsable(true) ,[color=blue]
    > Category("Data" )]
    > public ArrayList Elements
    > {
    > get { return this.el; }
    > set { this.el = value; }
    > }
    >
    > .....
    > }
    >
    > I'm placing this into a propertyGrid and for some machines the setter[/color]
    fails.[color=blue]
    > Any ideeas?
    > Thanks[/color]


    Comment

    • Marius

      #3
      RE: PropertyGrid and ArrayList

      The setter is never called on some machines. That's very strange, why it olny
      working for some machines???

      Comment

      Working...