Last post Aug 26, 2014 05:22 AM by George Hua - MSFT
Aug 24, 2014 03:02 PM|subhrangshu|LINK
I need apply custom paging on a gridview by passing page index and page size. I have a dataset contain all records which are populating from multiple table by using a join query. and based on some condition i filtered records into dataview and in my application
dataview used as datasources of a gridview and gridview has allow paging to true.
how would i apply custom paging on this gridview, i mean i want to pass page index and page size on dataview and it will return me a filtered dataview which can be used as data sources for next page index.
Thanks in advances.
Aug 26, 2014 05:22 AM|George Hua - MSFT|LINK
As far as I know, you could create a Stored Procedure that allows us to pass page index and page size, it will return data source that we want to bind to gridview.
For more information about how to create this stored procedure, please have a look at
Stored Procedure with Sorting, Paging, and Filtering.
In addition, another solution may give you help:
Custom paging with ASP.NET GridView