you have declared at Footer Template. So,you cant get the value at DataRow
if (e.Row.RowType == DataControlRowType.DataRow)
{
total += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "AchievedPer"));
profit += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "AchievedProfit"));
}
if (e.Row.RowType == DataControlRowType.Footer)
{
total += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "AchievedPer"));
profit += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "AchievedProfit"));
}