title: C# - Looping through a Repeater control and accessing values added via DataBinder.Eval()
body: <p>I have a Repeater control that adds rows to a table. The data inside each cell comes from a Datatable that is bound to the repeater.</p>
  
  <p>Simplified Example:</p>
  
  <pre><code>&lt;asp:Repeater ID="Repeater1" runat="server"&gt;
    &lt;ItemTemplate&gt;
     &lt;tr&gt;
       &lt;td&gt;
          &lt;%# DataBinder.Eval(Container.DataItem, "PartNumber")%&gt;
       &lt;/td&gt;
       &lt;td&gt;
           &lt;%# DataBinder.Eval(Container.DataItem, "Quantity")%&gt;
       &lt;/td&gt;
     &lt;/tr&gt;
  &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p></p>
  
  <p>In code behind I would like to be able to loop through each repeater row and get the value for Quantity for that row. </p>
  
  <p>So far all I have is:</p>
  
  <pre><code>foreach (RepeaterItem ri in Repeater1.Items)
  {
  
  } 
  </code></pre>