private void GridView2_DataBound(object sender, System.EventArgs e)
{
foreach (object gv_loopVariable in GridView2.Rows) {
gv = gv_loopVariable;
Label TotalLabel = (Label)gv.FindControl("LabelTotal");
Repeater repeaterSizeNQuatity = (Repeater)gv.FindControl("Repeater2");
double totalquantity = 0;
int counter = 0;
counter = repeaterSizeNQuatity.Items.Count;
for (int i = 0; i <= counter - 1; i++) {
double quantity = 0;
quantity = ((Label)repeaterSizeNQuatity.Items(i).FindControl("Label12")).Text;
totalquantity = totalquantity + quantity;
}
TotalLabel.Text = totalquantity;
}
}