I have a grid view in web user control and I’m dynamically adding the web user control inside an aspx page. I want custom pagination inside the grid so that initially it only loads the first 10 records so that the user control loads quickly, and then by clicking on “next” or page numbers it will load the next group of 10 records. How can this be achieved?
Share
If You use Sqlserver’s Stored Procedure then pass Two parameters which is Page Size and Page No.
In Page size it contains total number of record display and Page no contains Current Page.
In short you have to fetch only Page size record not all and call that stored procedure in grid’s Page index changed Event.