The rows.count property on my GridView control only tells me how many rows are displayed on the screen, not the total number available.
The solution below is not working. I have an SqlDataSource and a GridView and neither can be cast into a dataset or datatable.