title: How to set selected row in ASP.NET GridView based on DataKey?
body: <p>I want something similar to the following pseudocode:</p>
  
  <pre><code>myGridView.SelectedIndex = myGridView.DataKeys.IndexOf("mySpecificKey");
  </code></pre>
  
  <p>I've done some Intellisense exploring, but I haven't found an obvious way to do this.  I would want to set SelectedIndex to -1 if DataKey was not found.</p>