DataGrid.RowEditEnding, retrieve added row

Apr 17, 2010 at 2:22 PM
Edited Apr 17, 2010 at 2:23 PM


I'm learning WPF by building a MVP program where I try to catch the  currently edited row in my presenter by attaching to the RowEditEnding event.But in the event manager I cannot retrieve the contents of the row that is added. e.Row.Item contains an empty object, while at least of the correct type. There must be some way to catch what has been written into the row of the DataGrid?

I also tried to move the event to the code behind, but it's the same. So I guess I'm doing something wrong due to my noob-ity ;-)



Tomas Sandkvist