C# search column in a DataGridView and make that row selected
<p>I need function that I can feed a <code>DataGridView</code>, column number, and string to search for and it selects that <code>DataGridView</code> row based on the column to search in and the string to search for.  I have the base function below, just missing a chunk of code to make it work.  Thoughts?  </p>

<pre><code>public void dgvSearchSetCurrent(DataGridView oDataGrid, int iCol, string sSearch)
{
  if (oDataGrid.RowCount &gt; 0)
  {
    bool iFound = false;
    //Search DG column and set select/set the current row
    //missing code here

    //if not found, set current row 0
    if (iFound == false)
    {
      oDataGrid.Rows[0].Selected = true;
    }
  }
}
</code></pre>
