private void gridViewSummary_RowUpdated(object sender, DevExpress.XtraGrid.Views.Base.RowObjectEventArgs e) { DataRowView drv = (DataRowView)e.Row; DataRow row = drv.Row; if (row.RowState == DataRowState.Modified) { var id = int.Parse(row[colId_S.FieldName].ToString()); var summary = _IDService.GetPSASummaryById(id); summary.Accuracy = row[colAccuracy_S.FieldName].ToString(); summary.DealAmount = Convert.ToDecimal(row[colDealAmount_S.FieldName]); summary.DealRange = Convert.ToDecimal(row[colDealRange_S.FieldName]); summary.Decision = row[colDecision_S.FieldName].ToString(); summary.PriceRange = row[colPriceRange_S.FieldName].ToString(); summary.Reason = row[colReason_S.FieldName].ToString(); summary.TradeType = int.Parse(row[colTradeType_S.FieldName].ToString()); _IDService.UpdatePSASummary(summary); } }