title: How to select max and min value of any column of datagridview
body: <p>I have a datagridview control on my windows form.
  Now i need to select max and min value of a column.
  In data-table we can do this by using this</p>
  <h2>Code</h2>
  <pre><code>int maxID = curriculmDataTable.AsEnumerable().Max(r =&gt; r.Field&lt;int&gt;(&quot;Id&quot;));
  </code></pre>
  <p>How can i achieve this in datagridview.</p>