Click here to monitor SSC

ASP.NET Grid View Pager Problem - Waiting for Reply

Last post 06-16-2010, 1:44 AM by sreekanth. 3 replies.
Sort Posts: Previous Next
  •  04-21-2009, 8:31 AM Post number 73215

    ASP.NET Grid View Pager Problem - Waiting for Reply

    Hi Friends,

    I am trying to make use of Grid View pager control with Custom Paging. I have created stored procedure to fetch only 10 records out of say 50000 records. Using ROW_NUMBER() function of SQL Server 2005. And called this stored procedure in a Business Layer method which is passed to SelectMethod of ObjectDataSource. Also create SelectCountMethod.

    I have set all the required properties of GridView and ObjectDataSource.

    Also added required code in the PageIndexChanging event.

    I am binding the records to the grid view on a button click event. My binding is successfull but pager control of grid view is not visible. Records are getting shown in the grid view.

    Can anybody tell me what could be the problem?

    Thanks in advance.



    Give people what they expect and do it cheerfully.
  •  04-27-2009, 6:20 AM Post number 73268 in reply to post number 73215

    • Nuno Gomes is not online. Last active: 02-28-2011, 10:20 AM Nuno Gomes
    • Not Ranked
    • Joined on 10-01-2008
    • Lisboa, Portugal
    • Level 1: Deep thought

    Re: ASP.NET Grid View Pager Problem - Waiting for Reply

    Hi, Try setting AllowPaging="true" in GridView contro.l
  •  04-28-2009, 1:25 AM Post number 73282 in reply to post number 73268

    Re: ASP.NET Grid View Pager Problem - Waiting for Reply

    Thanks for the reply.
    I have set this property to true but it gives the same problem.
    Also set AllowPaging property true for ObjectDataSourceControl.
    Give people what they expect and do it cheerfully.
  •  06-16-2010, 1:44 AM Post number 93049 in reply to post number 73215

    Re: ASP.NET Grid View Pager Problem - Waiting for Reply

    set on paging=true and fire onpageindexchanging event and bind the gridview data again.
View as RSS news feed in XML