int total = 0; protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { total = System.Convert.ToInt32(e.Row.Cells[3].Text); } else if (e.Row.RowType == DataControlRowType.Footer) { e.Row.Cells[3].Text = total.ToString("c"); } }
e.Row.Cells[3].Text
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)