GridView paging without DataSource control
-
I'm trying to implement paging on a data grid control, but because I'm not using a datasource control there is no way to tell the GridView what the total record count is (I'm only returning the requested records from the database instead of the entire, unpaged dataset). I've looked everywhere and I can't seem to find any examples which aren't returning the whole dataset and then filtering it locally.
Code responsibly: OWASP.org Mark's blog: developMENTALmadness.blogspot.com Click here for Free Industry White Papers/Magazines! Bill Cosby - "A word to the wise ain't necessary - it's the stupid ones that need the advice."
-
I'm trying to implement paging on a data grid control, but because I'm not using a datasource control there is no way to tell the GridView what the total record count is (I'm only returning the requested records from the database instead of the entire, unpaged dataset). I've looked everywhere and I can't seem to find any examples which aren't returning the whole dataset and then filtering it locally.
Code responsibly: OWASP.org Mark's blog: developMENTALmadness.blogspot.com Click here for Free Industry White Papers/Magazines! Bill Cosby - "A word to the wise ain't necessary - it's the stupid ones that need the advice."
Are you looking for a Custom Paging?[^]
-
Are you looking for a Custom Paging?[^]
I had hoped I was just missing something. But thank you for confirming that for me. Would it have been so hard to allow for this kind of scenario? Honestly, I am really shocked at times when I run into scenarios when it requires so much more work (ok, so I'm being a bit lazy) to follow a best practice.
Code responsibly: OWASP.org Mark's blog: developMENTALmadness.blogspot.com Click here for Free Industry White Papers/Magazines! Bill Cosby - "A word to the wise ain't necessary - it's the stupid ones that need the advice."