I'm trying to create a GridView with custom paging. I have very large data so In order to Increase ten Speed I'm trying to do Custom Paging.
I wrote a SQL Server stored procedure that takes input parameters SelectedPageNumber
, SelectedPageSize
and gives the DataTable
filled with the resulting rows belonging to the particular page. The stored procedure also has a MaxPageNumber
as output parameter.
I'm able to bind the data of the page to the GridView but I'm not able to figure out how to show the page numbers up to the MaxPageNumber
value taken as a stored procedure.
I'm using .Net Framework 4.0
It might be a duplicate but I could not find the solution.
Can you help me out ???