DataTable with 15 records -> GridView PageIndexChange doesn't display the next 5 record

Discussion in 'ASP .Net' started by Fabio Mastria, Apr 3, 2008.

  1. Hi

    having a DataTable with 15 records, used as DataSource of a GridView enabled
    to manage page of 10 rows, if I click on the second page, I can't see the
    next records after firsts 10!

    I manage the PageIndexChange event as follow

    GridView theGrid = (GridView)sender;

    theGrid.PageIndex = e.NewPageIndex;

    theGrid.DataSource = dtSource;

    theGrid.DataBind();

    What's wrong?

    Thank u
    Fabio
     
    Fabio Mastria, Apr 3, 2008
    #1
    1. Advertising

  2. ok solved... it works really...

    it was a problem of data in db... nothing

    thank to all anyway ^^
     
    Fabio Mastria, Apr 3, 2008
    #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. Deniz Bahar
    Replies:
    2
    Views:
    481
    Andrey Tarasevich
    Mar 9, 2005
  2. pietaster

    PageIndexChange in datagrid

    pietaster, Feb 17, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    102
    Renato Aloi
    Feb 17, 2004
  3. sa siva via .NET 247

    SortCommand and PageIndexChange event not firing

    sa siva via .NET 247, Mar 24, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    157
    Cole Trickle
    May 5, 2005
  4. Jimmy Tran
    Replies:
    1
    Views:
    239
    Dan Brussee
    Oct 3, 2003
  5. Guest
    Replies:
    1
    Views:
    266
    Alex G
    Jan 9, 2004
Loading...

Share This Page