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. Advertising

  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. Advertising

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. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    DataSet paging vs Datareader paging

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Oct 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    10,708
    Scott Allen
    Oct 8, 2004
  2. Roger
    Replies:
    0
    Views:
    967
    Roger
    Dec 28, 2004
  3. wh1974
    Replies:
    0
    Views:
    2,439
    wh1974
    Jan 12, 2005
  4. Red
    Replies:
    1
    Views:
    725
  5. Green Start Button

    DataGrid.Items.Count and DataGrid Paging...

    Green Start Button, Aug 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    5,820
    agravar
    Aug 2, 2006
Loading...

Share This Page