Dynamic Gridview VIEWSTATE lost on postback

K

K B

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,832
Latest member
UtaHetrick

Latest Threads

Top