title: DataGridView: programmatically select/highlight entire column on button click
body: <p>I want to programmatically select/highlight entire column on button click to let users know what they searched.</p>
  
  <p><a href="http://i.stack.imgur.com/eIL7f.png" rel="nofollow">This is what currently happens on button click ("GO" button)</a>
  but <a href="http://i.stack.imgur.com/gZcCW.png" rel="nofollow">this</a> is what I need to happen. </p>
  
  <p>I have tried these so far to no avail:
  <code>
  DataGridView2.SelectionMode = DataGridViewSelectionMode.FullColumnSelect
  DataGridView2.Columns(2).Selected = True
  </code></p>
  
  <p><em>Doing so gave me this error:</em> <code>DataGridView control's SelectionMode cannot be set to FullColumnSelect while it has a column with SortMode set to DataGridViewColumnSortMode.Automatic.</code></p>
  
  <p>I also tried to simply select the whole column. No error, but it didn't work.
  <code>
  DataGridView2.Columns(2).Selected = True</code></p>