On 24 Kwi, 13:04, "Marc Gravell" <marc.grav...@gmail.com> wrote:
> I don't have my 1.1 tools "on hand" (and can't be bothered to csc),
> but the following might work:
> .......
>
Marc,
Your example works fine. I get the same functionality in my code when
I changed ArrayList to CollectionBase. But one more problem still
exists - serialization. After I define collection of items using
property grid in design mode - it should be saved in .resx file or
in .cs file so that I can use it in runtime (just like any other
property of my user control). As I mentioned before I implemented
TypeConverter for MyDataCollection. Designer is using this converter
by calling method ConvertTo but it never calls ConvertFrom. I also set
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)].
But collection of items which now - thanks to your help - can be
defined in desing time using propery grid is never serialized.
Mabye this is also a piece of cake for you

Regards,
Tom