Thanks for the reply, I have gotten much further in my testing. Actually, now I don't understand why it ever worked, because I have never changed what I believe the problem must be...
Using a simple (and single) html page, I tried testing my problem and can make it work beautifully every time by either manually generating columns or letting databind do it for me. So I went back to my site and tried to look for differences. The only one I have found so far is that the button causing the postback is a part of a user control and the data grid and this user control are part of a subpage that are embedded in a parent html document.
Are you aware of any problems with children docs or controls having problems with viewstate? If I put a regular button (not a user control in the same page, viewstate is maintained.
If this doesn't help, I'll try making an example page or two and posting them here.
Thanks again for the reply.
|