tags:

views:

37

answers:

1

Hi,

I've bound an ObservableCollection to a DataGrid. When I change values in the DataGrid, the RowEditEnding event is raised. But the e.Row.Item is the object before editing, so you don't see the new values. I understand that because of the EditEnding. In Silverlight you have an EditEnded event, how can I get the object with the new values when I edit the DataGrid.

thanks,

Filip

A: 

Well, maybe this may help: http://wpf.codeplex.com/Thread/View.aspx?ThreadId=39356

http://blogs.msdn.com/b/vinsibal/archive/2009/04/14/5-more-random-gotchas-with-the-wpf-datagrid.aspx

Or this, see point number 5.

You'll have to tinker with it to get what you want I think, but I hope that helps! Or points you in a good direction.

townsean