Skip to content

Datagrid not retaining viewstate on postback

May 24, 2007

Retrieved from: http://vspug.com/kwanl/2007/05/24/datagrid-not-retaining-viewstate-on-postback/

I haven’t done much DataGrid programming in the past but it’s used quite a bit at my new job. I thought I was pretty proficient at ASP.Net 1.1 but I was having some trouble getting the DataGrid viewstate to work. The problem was when you have AutoGenerateColumns set to false you have to do a little bit of extra work for the viewstate to load, you need to set up the columns on each page load.

http://www.velocityreviews.com/forums/t111954-net-datagrid-contents-lost-on-postback.html

Advertisements

From → .Net, C#, Web Development

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: