I was wondering if anyone knew why when I try and to get a grid view row count, I get 0, unless I call the count from a second button AFTER the gridview has already loaded.
You don't want to count the rows in the grid. If you want to display a row count, count the rows in the datasource(datatable, etc) that the grid is binding too.
I tried that, but couldn't figure out how to do it...Below, you can see that my datasource is called SqlDataSource1. There isn't a table. How and on what event can I access this information?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.