Datagrid and paging

Discussion in 'ASP .Net Datagrid Control' started by Arne, Aug 4, 2005.

  1. Arne

    Arne Guest

    I have a datagrid with paging that works.
    I set EnableViewstate to true for the datagrid.
    in the PageIndexChanged event i set
    PromoGrid.CurrentPageIndex = e.NewPageIndex
    bindDataGrid()

    In bindDataGrid() I retrieve the data from the database again. Why can't I
    retrieve the data from viewstate?
     
    Arne, Aug 4, 2005
    #1
    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,871
    Scott Allen
    Oct 8, 2004
  2. Roger
    Replies:
    0
    Views:
    982
    Roger
    Dec 28, 2004
  3. wh1974
    Replies:
    0
    Views:
    2,492
    wh1974
    Jan 12, 2005
  4. Red
    Replies:
    1
    Views:
    769
  5. Green Start Button

    DataGrid.Items.Count and DataGrid Paging...

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

Share This Page