title: Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
body: <p>I am getting the error below when I destroy and create datatable</p>
  
  <pre><code>RadioButton rdb2 = new RadioButton();
  RadioButton rdb3 = new RadioButton();
  rdb1 = (RadioButton)DataList1.Items[item.Id].FindControl("One");
  rdb2 = (RadioButton)DataList1.Items[item.Id].FindControl("Three");
  rdb3 = (RadioButton)DataList1.Items[item.Id].FindControl("Seven");
  </code></pre>
  
  <p>What I am doing is based on the user selection I am calling the data from database and put it into a new data table which I use as DataScouce for my DataList.</p>
  
  <p>Please help me how to solve this error. I have seen the <a href="http://support.microsoft.com/kb/836874" rel="nofollow">link</a> also for solution but it didn't help.</p>