int totqty = 0;
protected void gvwInner_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label qty = (Label)e.Row.FindControl("lblQty");
if (qty != null)
{
qty += Convert.ToInt32(sal.Text);
totqty = totqty + qty;
}
}
}
protected void gvwOuter_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label lblTotalQty = e.Row.FindControl("lblTotalQty") as Label;
lblTotalQty.Text = totqty.ToString();
}
}