____________________ | Date | Value | | 03/01/16 | 12 | | 03/02/16 | 6 | | 03/02/16 | 6 | | 03/03/16 | 10 |
public Decimal TotalValue=0; protected void gvLevel3OT_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { TotalValue+= Convert.ToDecimal(e.Row.Cells[5].Text.ToString()); } else if (e.Row.RowType == DataControlRowType.Footer) { e.Row.Cells[3].Text = "Total"; e.Row.Cells[5].Text = TotalValue.ToString("F"); } }
group by
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)