I want to display a custom collection editor form when a user edits a custom collection in my server control. I have derived a class from CollectionEditor and it looks like I need to override CreateCollectionForm and return my custom form derived from CollectionEditor.CollectionForm.
My question is then how do I interact with that form? How do I get my collection to edit into the form so that I can populate it, and then how do I get the changed values back to the CollectionEditor? I can't seem to find any good documentation on how this
works. If anyone could point me at a good sample of providing a custom CollectionForm that would be probably all I need.
billreiss
Member
320 Points
64 Posts
Overriding CreateCollectionForm in CollectionEditor (ASP.Net 2.0)
Feb 04, 2006 04:36 PM|LINK
I want to display a custom collection editor form when a user edits a custom collection in my server control. I have derived a class from CollectionEditor and it looks like I need to override CreateCollectionForm and return my custom form derived from CollectionEditor.CollectionForm. My question is then how do I interact with that form? How do I get my collection to edit into the form so that I can populate it, and then how do I get the changed values back to the CollectionEditor? I can't seem to find any good documentation on how this works. If anyone could point me at a good sample of providing a custom CollectionForm that would be probably all I need.
Thanks, Bill Reiss