Hi,
I'm using this function to sum the values of a column in a grid view and
it's working fine but the only problem that is summing only the displayed
page of my grid so if I go to the next page it will calculate only sum of the
values of the column in that page
public void sumRows(Object src, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
TableCellCollection cells = e.Row.Cells;
// assumes column to sum is last column in grid
total += float.Parse(cells[4].Text);
cells[4].Text = string.Format("{0:n}",
float.Parse(cells[4].Text));
}
}