You need to find out what is going on: Certainly, the problem is that "i" is getting to big for the number of rows in "Table1", but you need to look at the value of "count1" and work out why it is bigger than the number of rows.
Put a breakpoint on the line
int count1 = Convert.ToInt32(ddlanswers.SelectedValue.ToString());
And follow it through from there.