PropertyGrid and ArrayList

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a class:

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

[Editor(typeof(MyCustomEditorTypes), typeof(UITypeEditor)), 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
 
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 PropertyDescriptors - check what returns GetPropertyType of the
PropertyDescriptor.
 
The setter is never called on some machines. That's very strange, why it olny
working for some machines???
 
Back
Top