problem in persisiting a collection

K

Kaimal

Hi
I have a user control in which i have a collection (ArrayList) of
userdefined objects (A class with two public properties).
I am using a custom editor derived from UITypeEditor to edit the values of
this collection. The problem is that values in this collection are not
persisted to code.

I have tried using DesignerSerializationVisibility as Content.
Every thing is working fine if i have a premitive type (Double) in the
collection.

have any one faced similar situvation?

Can any one send a code snippet explaining how to persist a collection of
user defined objects.

Thanks in advance
Ragesh Kaimal
 
S

Stefan Rosenthal

may be this helps (does at me!)

use System.Collections.Generic.List (Of T) ... the designer will accept the
Object you designed

e.g. col = New System.Collections.Generis.List(Of MyAddressObject)

Stefan
 
K

Kaimal

This is supported only in .NET framework version2.0 .
I am still using Version1.1

Is there any way to do it in version1.1, Visual studio2003 ?

Thanks,
Kaimal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top