Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 27, 2012 10:17 AM by sinedyip
Dec 26, 2012 08:51 PM|LINK
Hi I have DataTable that I am exposing as a JSON in a web API but I would like to do a custom paging in my result.
someID | Name | Other|
234 | John | Work
534 | Luis | Yes
834 | Raul | No
So the DataTable is created dynamically on codebehind and I would like to return only the 20 element from an specific position. I read about DataTable.Select but I dint see any example of it.
Any idea on how can I do a paging to a datatable using and start point like "someID" this number are unique.
Dec 27, 2012 08:24 AM|LINK
1) If you bind the DataSource directly to the GridView, you can just make your GridView's Paging = True.
2) If your GridView wanna Customized Paging, you can just refer this sample:
Dec 27, 2012 10:17 AM|LINK
My final goal is expose that data in a web API so I am not using a GridView.
The data is a JSON