/// <devdoc> /// Listens for the RowUpdate event on a data adapter to support UpdateBehavior.Continue /// </devdoc> private void OnDB2RowUpdated(object sender, DB2RowUpdatedEventArgs rowThatCouldNotBeWritten) { if (rowThatCouldNotBeWritten.RecordsAffected == 0) { if (rowThatCouldNotBeWritten.Errors != null) { rowThatCouldNotBeWritten.Row.RowError = SR.ExceptionMessageUpdateDataSetRowFailure; rowThatCouldNotBeWritten.Status = UpdateStatus.SkipCurrentRow; } } }
private void DB2Database_RowUpdated(object sender, DB2RowUpdatedEventArgs e) { if (e.RecordsAffected == 0) { if (e.Errors != null) { e.Row.RowError = "更新数据行时出错。"; e.Status = UpdateStatus.SkipCurrentRow; } } }