I should have be more specific in my description, I have implemented my own
Collection class that implements IList, IBindingList, and ICollection
interaces. I looked at the IEditableObject interace, but am not seeing how
this will correct my problem. It seems that the IEditableObject interface is
more responsible for managing changes to an object and either committing or
discarding those changes when an edit begins or is cancelled. I will
probably need to get to that task next, but for now, I just want return the
correct type of object when a "new" is clicked by the user. Does the
IEditableObject interface handle new object as well?
> Do a google search for
> IEditableObject.
[quoted text clipped - 21 lines]
> > I need to implement on my Customer Objects so that it will understand the
> > datagrids request for a new object?
sloan - 05 Jul 2006 15:08 GMT
I ~think you need a default contructor.
And I think items in your Collection, have to implment the IEditable object.
Buts its been over a year since I last did it, so I can't be authoratative
with these answers.
> I should have be more specific in my description, I have implemented my own
> Collection class that implements IList, IBindingList, and ICollection
[quoted text clipped - 31 lines]
> > > I need to implement on my Customer Objects so that it will understand the
> > > datagrids request for a new object?
sloan - 05 Jul 2006 15:11 GMT
Here's an example I found.
http://www.vb-helper.com/howto_net_sort_dataset_collection.html
I don't know of a C# example offhand. ( I had that one in my old bookmarks)
> I ~think you need a default contructor.
> And I think items in your Collection, have to implment the IEditable object.
[quoted text clipped - 48 lines]
> the
> > > > datagrids request for a new object?
Guy Thornton - 05 Jul 2006 15:29 GMT
Thanks for the information. I will see what I can work out.
> Here's an example I found.
>
[quoted text clipped - 65 lines]
> > the
> > > > > datagrids request for a new object?
Guy Thornton - 06 Jul 2006 12:41 GMT
It would be nice if I could get someone from Microsoft to help out with this
question. The only way I have been able to figure out how to make this work,
is to create a strongly typed collection
> Thanks for the information. I will see what I can work out.
>
[quoted text clipped - 67 lines]
> > > the
> > > > > > datagrids request for a new object?