Web Custom Control & Custom Collection problem

D

Donald Simpson

I have a custom collection of complex types.

The type is 'GraphValue' and the collection
is 'GraphValueCollection'.

On my Web Custom control I have a property 'GraphValues'
which is a GraphValueCollection.

I have it set up such that the whole thing works through
Visual Studio's designer & the control works fine at
runtime.

However, as soon as i use the designer to add a
GraphValue to the collection & build the project, the
designer shows the default "Error creating control"
dialog with the tooltip saying '' could not be set on
property 'GraphValues'. The '' is not my fat fingers
either - its 2 single quotes!!

The control still works fine at runtime - but this is a
very annoying problem.

I'm using the attributes ParseChildren(true) and
PersistChildren(false) on the custom control class

I'm using the attributes PersistenceMode
(PersistenceMode.InnerProperty), NotifyParentProperty
(true) and DesignerSerializationVisibility
(DesignerSerializationVisibility.Content) on the
Property.

The Property has both Get & Set accessors - I've seen a
similar post where somebody solved the issue by removing
the set accessor, but if i do this the IDE crashes!!

Any help to solve this much appreciated.

Thanks

Donald
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top