cannot disable viewstate on datagrid

Discussion in 'ASP .Net Datagrid Control' started by Rhodri, Apr 20, 2004.

  1. Rhodri

    Rhodri Guest

    Hi all

    I have a datagrid which can display upto 20,000 records and the
    viewstate gets very big. I have tried turning of viewtate using
    EnableViewState = false both on the parent page and on the DataGrid
    itself, however when i view the generated html source there is still
    an enourmous viewstate.

    The columns for my grid are being generated dynamically in the code
    behind, is this causing the problem?
     
    Rhodri, Apr 20, 2004
    #1
    1. Advertising

  2. Rhodri

    Rick Spiewak Guest

    Try turning off the datagrid viewstate in the codebehind at the same time
    you create the columns.
    "Rhodri" <> wrote in message
    news:...
    > Hi all
    >
    > I have a datagrid which can display upto 20,000 records and the
    > viewstate gets very big. I have tried turning of viewtate using
    > EnableViewState = false both on the parent page and on the DataGrid
    > itself, however when i view the generated html source there is still
    > an enourmous viewstate.
    >
    > The columns for my grid are being generated dynamically in the code
    > behind, is this causing the problem?
     
    Rick Spiewak, Apr 23, 2004
    #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. Homa
    Replies:
    2
    Views:
    1,935
  2. Rhodri
    Replies:
    1
    Views:
    389
    Rick Spiewak
    Apr 22, 2004
  3. Stan
    Replies:
    3
    Views:
    10,418
  4. Baohua Li

    Cannot disable ViewState

    Baohua Li, Jan 5, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    266
    Teemu Keiski
    Jan 5, 2004
  5. Fluxray

    Cannot disable requiredfieldvalidator in datagrid

    Fluxray, Sep 17, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    227
    Fluxray
    Sep 17, 2004
Loading...

Share This Page