ASP .Net Gridview
<p>I'm using a form to populate a gridview with x users. However I want whenever I call the function if there is only 1 user displayed inside the gridview to autoselect that first user.</p>

<p>So within my callback function I have </p>

<pre><code>if (users.count == 1)
{
   // Do something
}
</code></pre>

<p>I currently use the following function upon someone pushing "select" alongside the gridview.</p>

<pre><code>Users_SelectedIndexChanged(object sender, EventArgs e)
</code></pre>

<p>It would be nice if I could reuse this function and do something like</p>

<pre><code>if (users.count == 1)
{ 
Users_SelectedIndexChanged(object sender, EventArgs e); 
}
</code></pre>
