RowEditEnding之前的新值

时间:2012-07-13 12:32:48

标签: c# wpf

我使用RowEditEnding事件,但此代码

DataRowView rowView = dataGrid1.SelectedValue as DataRowView;
MessageBox.Show(Convert.ToString(rowView[7]));

让我失去价值,我怎样才能获得新价值?

1 个答案:

答案 0 :(得分:0)

来自您的活动,这会引导您到任何地方吗?

System.Data.DataRow modifiedRow = (e.Item as DataRowView).Row;
MessageBox.Show(Convert.ToString(modifiedRow ));