This is my code :
for (i = j; i <= e.curpos; i++)
{
Question q = e.questions[i];-- here exception is occuring
// display details of question
dr = dts.NewRow();
dr["no"] = i+1;
dr["enterquestion"] = q.enterquestion;
dr["optiona"] = q.optiona;
dr["optionb"] = q.optionb;
dr["optionc"] = q.optionc;
dr["optiond"] = q.optiond;
dts.Rows.Add(dr);
}
Question q = e.questions[i]
here after the loop complete the exception is occurring