c# how to get the row number from a datatable
<p>i am looping through every row in a datatable:</p>

<pre><code>foreach (DataRow row in dt.Rows) {}
</code></pre>

<p>i would like to get the index of the current row within the dt datatable. for example:</p>

<pre><code>int index = dt.Rows[current row number]
</code></pre>

<p>how do i do this?</p>
