B-Dubs

I have a TypeConverter that returns a set of standard values to display a dropdown list of objects of type B for a property of type A. It appears that the PropertyGrid in 2.0 is cloning objects when setting the property for multiple SelectedObjects. In prior levels I was able to get multiple objects of type A to reference the same object of type B via a set in the propertygrid. Is there some way I can do this in 2.0 without implementing ICloneable for class B and making Clone() return this



Re: Visual C# Language PropertyGrid Cloning objects

bitbonk

I have the same problem, only that instead of using clone the propertygrid creates the copy using serialization, as described here:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1208317&SiteID=1

 

Did anyone find a solution to this






Re: Visual C# Language PropertyGrid Cloning objects

Figo Fei - MSFT

Hi,

For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups.

Thanks






Re: Visual C# Language PropertyGrid Cloning objects

bitbonk

The appropiate msdn forum would be: Windows Forms Designer

Here is my issue:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1208317&SiteID=1