title: Get current gridview.rows.count
body: <p>I have a gridview where I set the datasource when the user click a button on the form.
  Im trying to get the rowcount of the gridview using the same button_click event, but its returning the rowcount previous to the datasource being set, ie 0.
  Im using  </p>
  
  <pre><code>strCount = gvReturned.Rows.Count.Tostring();
  </code></pre>
  
  <p>Any hints appreciated.</p>
  
  <p>thanks</p>
  
  <p>T</p>