D
Daniel Jorge
Hi there,
I'm new to webControls and I'm having a doubt regarding collection into
the Control.
Well, I've built a webCustomControl (let's call it MyPrimaryControl
here) and it has a collection of custom objects (let's call it
"MyCustomItem").
I built a class called MyCustomItemCollection which implements IList,
ICollection and IStateManager interfaces. No inheritances!
I implemented all the mothods except the ones for ViewState management.
IndexOf, Add, Insert, Remover and so on are all there!
Now I get:
MyPrimaryControl.CutomItems = MyCustomItemCollection
When I use my primary control the property CustomItems (which is a
collection) open up the Help dialog and let me add several System.Object
objects into the collection. But yet, I can't edit any of them. I can't save
the items as well.
Does anybody know how to edit a collection with the correct object type,
make it editable at Design-Time and force it to save the items into the
object.
Thanks in advance.
Bye
I'm new to webControls and I'm having a doubt regarding collection into
the Control.
Well, I've built a webCustomControl (let's call it MyPrimaryControl
here) and it has a collection of custom objects (let's call it
"MyCustomItem").
I built a class called MyCustomItemCollection which implements IList,
ICollection and IStateManager interfaces. No inheritances!
I implemented all the mothods except the ones for ViewState management.
IndexOf, Add, Insert, Remover and so on are all there!
Now I get:
MyPrimaryControl.CutomItems = MyCustomItemCollection
When I use my primary control the property CustomItems (which is a
collection) open up the Help dialog and let me add several System.Object
objects into the collection. But yet, I can't edit any of them. I can't save
the items as well.
Does anybody know how to edit a collection with the correct object type,
make it editable at Design-Time and force it to save the items into the
object.
Thanks in advance.
Bye