title: Looping through each element in a DataRow
body: <p>Basically, I have a <code>DataTable</code> as below:</p>
  
  <p><img src="https://i.stack.imgur.com/ID1XC.png" alt="Enter image description here"></p>
  
  <p>I want to run a method per element per row which has the parameters</p>
  
  <pre><code>AddProductPrice(SKU, Price, PriceBracket)
  </code></pre>
  
  <p>As an example...:</p>
  
  <p>If we take the first row of data, the method will be run a potential of 16 times, once for each time <code>Total Price X</code> isn't null.</p>
  
  <p>So for the first total price in the first row the call will be:</p>
  
  <pre><code>AddProductPrice(SKU, &lt;Total Price 1 value&gt;, 1)
  </code></pre>
  
  <p>Then for the second total price in the first row the call will be:</p>
  
  <pre><code>AddProductPrice(SKU, &lt;Total Price 2 value&gt;, 2)
  </code></pre>
  
  <p>Please note: for the National Selling element the call would be:</p>
  
  <pre><code>AddProductPrice(SKU, &lt;National Selling value&gt;, 16)
  </code></pre>
  
  <p>Is there a clever way to loop through each element in a <code>DataRow</code> to make the procedure more efficient?</p>