Dynamic Gridview VIEWSTATE lost on postback

Discussion in 'ASP .Net' started by K B, May 27, 2006.

  1. K B

    K B Guest

    Hi, I have a gridview where I do the databind on a dropdownlist
    selection event, and create the rows dynamically during the rowdatabound
    event. When I click the SAVE button to capture user changes, the grid is
    lost. I can see that this is a VIEWSTSATE issue but I don't know how to
    fix it.

    How do I keep viewstate for the gridview. It is not loaded on page load,
    but on a click event. An example or some details would be much
    appreciated. I've tried searching but still don't understand how to do
    this.

    Thanks,
    Kit
     
    K B, May 27, 2006
    #1
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.