我使用RowEditEnding
事件,但此代码
DataRowView rowView = dataGrid1.SelectedValue as DataRowView;
MessageBox.Show(Convert.ToString(rowView[7]));
让我失去价值,我怎样才能获得新价值?
答案 0 :(得分:0)
来自您的活动,这会引导您到任何地方吗?
System.Data.DataRow modifiedRow = (e.Item as DataRowView).Row;
MessageBox.Show(Convert.ToString(modifiedRow ));