WPF Datagrid binding to interface object ?

Aug 18, 2009 at 11:31 AM

Hello,

I'm trying to bind a list of objects to my datagrid and it shows me all the items.

However I also wan't to be able to add rows through the datagrid default behavior, but since it's bound to an inteface, it doesn't now how to create an specific object that implements that interface. Is there any way to tell how a new object should be created through an event ? I tried it with the InitializingNewItem -event but it doens't allow me to set the NewItem property ... .

Any ideas ?

Greetings
Kevin