title: Populating an ASP.NET Repeater
body: <p>I have a repeater in my aspx:</p>
  
  <pre><code>&lt;asp:Repeater ID="rptDummy" runat="server" OnItemDataBound="rptDummy_OnItemDataBound"
       Visible="true"&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>in the c# side of the web I wrote this function:</p>
  
  <pre><code> protected void createRadioButtons(DataSet ds){
       List&lt;System.Web.UI.WebControls.RadioButton&gt; buttons = new List&lt;System.Web.UI.WebControls.RadioButton&gt;();
       foreach (DataTable dt in ds.Tables){
              foreach (DataRow r in dt.Rows){
                 System.Web.UI.WebControls.RadioButton rb = new System.Web.UI.WebControls.RadioButton();
                 rb.Text = r[1] + " " + r[2] + " " + r[3] + " " + r[4];
                 rb.GroupName = (string)r[5];
                 buttons.Add(rb);
              }
        }
        rptDummy.DataSource = buttons;
        rptDummy.DataBind();
   }
  </code></pre>
  
  <p>But when trying it, it shows nothing.
  What am I doing wrong?</p>