int sum=0; foreach (GridViewRow row in nameofthegrid.Rows) { Label sum = (Label)row.FindControl(" column label id in item template to be add"); sum=sum+int.Parse(sum.Text); TextBox1.Text=sum; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)