标签:
if (e.IsTotalSummary && e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Finalize) { GridView view = sender as GridView; if (e.Item == view.Columns["Price"].SummaryItem) { int count = 0; for (int i = 0; i < view.DataRowCount; i++) { object temp = view.GetRowCellValue(e.RowHandle, "Price"); temp = (temp == DBNull.Value || temp == null) ? 0 : temp; count += Convert.ToInt32(temp); } e.TotalValue = count + 10; } }
标签:
原文地址:http://www.cnblogs.com/zeroone/p/4311272.html