When I execute my application, then the following error occurs:
System.ArgumentOutOfRangeException was unhandled by user code. Specified argument was out of the range of valid values. Parameter name: index
The error occurs on the line below which is commented:
private void helper_GeneralSummary(GridViewRow row)
{
double HoldingDays = Convert.ToDouble(row.Cells[6].Text);
double AbsReturn = Convert.ToDouble(row.Cells[7].Text);
double AnnReturn = (AbsReturn / HoldingDays) * 365;
row.Cells[8].Text = AnnReturn.ToString("#,0.00"); //Error occured
}
row.Cells[0]? - Tim Schmelter