title: Counting total rows on a datagrid
body: <p>I am trying to count all the rows on a datagrid after it has been populated from my DB. I have searched online on how to do this but nothing seems to work.</p>
  
  <p>here is how I grab my data</p>
  
  <pre><code>    test.SelectCommand = Ssql
      test.SelectParameters.Clear()
      test.DataBind()
  </code></pre>
  
  <p>where test is my datasource it gets thrown into. Any help is appreciated TY!</p>