WPF RowEditEnding returns old values

Viewed 1572

I bount an event of a dataGrid in WPF so I can keep track if a row was updated.

private void dataGrid_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e)
{
    var text = e.Row.Item as Skill;
}

So my goal is to get the new values of the row if it has been modified but it only returns the old value. When I edit it the second time it returns the new value. Why is that?

2 Answers

Alternatively, you could also set the UpdateSourceTrigger property of the respective binding to "PropertyChanged"...

Related