DataGrid Paging

Discussion in 'ASP .Net Datagrid Control' started by Bishoy George, Nov 20, 2005.

  1. After I made a datagrid paging to true, still the paging links are not
    working , how to make them work.
    Any help please.
    Thanks
     
    Bishoy George, Nov 20, 2005
    #1
    1. Advertisements

  2. Bishoy George

    Scott M. Guest

    You have to write the code yourself in the "PageIndexChanged" event. Simply
    selecting "Allow Paging" only enables the pager and the ability to click it.

    In the PageIndexChanged event, add this code:

    datagridName.CurrentPageIndex = e.NewPageIndex
    datagridName.DataBind()



    "Bishoy George" <> wrote in message
    news:...
    > After I made a datagrid paging to true, still the paging links are not
    > working , how to make them work.
    > Any help please.
    > Thanks
    >
     
    Scott M., Nov 20, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yangtsi River

    using Paging in Datagrid

    Yangtsi River, Jul 9, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    438
    Benjie Fallar
    Jul 9, 2003
  2. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    DataSet paging vs Datareader paging

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Oct 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    11,392
    Scott Allen
    Oct 8, 2004
  3. Roger
    Replies:
    0
    Views:
    1,094
    Roger
    Dec 28, 2004
  4. wh1974
    Replies:
    0
    Views:
    2,741
    wh1974
    Jan 12, 2005
  5. Red
    Replies:
    1
    Views:
    919
  6. Green Start Button

    DataGrid.Items.Count and DataGrid Paging...

    Green Start Button, Aug 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    6,094
    agravar
    Aug 2, 2006
  7. smithb1028

    DataGrid Paging makes DataGrid Disappear

    smithb1028, Jan 27, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    1,643
    smithb1028
    Jan 28, 2007
  8. Andreas Klemt
    Replies:
    0
    Views:
    523
    Andreas Klemt
    Oct 8, 2003
Loading...