How to get the minimum value of a DataTable's column?
<p>This is what i've tried:</p>

<pre><code>Decimal tempLow = 0;

for (int irow = 0; irow &lt; dtRep.Rows.Count; irow++)
{
    DataRow row = dtRep.Rows[irow];
    if (irow == 0)
        tempLow = Convert.ToDecimal(row[col.ToString()]);

    if (tempLow &gt; Convert.ToDecimal(row[col.ToString()]))  
        tempLow = Convert.ToDecimal(row[col.ToString()]);
}                                       
</code></pre>
