Check if row in RowEditEnding event is just added

Nov 21, 2009 at 1:21 PM

I have a WPF datagrid binded with LINQ.

I want to add rows in the datagrid and I created an handler for RowEditEnding event, but I don't know how to check if the row of the event has been added or not.
Since I have to know if I have to call insertOnSubmit() method for adding the row item to my datacontext, I must check someway if the row edited was new or not... Is there some method to perform this??

 

Thank you

Nov 21, 2009 at 2:11 PM

Sorry I solved,

the correct event is InitializeNewItem.