Datagrid Losing Viewstate on Postback
Posted on 2005-04-22
Experts: I'm in need of some help on a datagrid problem I've been chasing for two days now. I have a datagrid setup with template columns including two link buttons (one called Approve and one called Reject). When the datagrid binds the first time, the itemcommand event fires just fine for either button. When the datagrid binds the second time, the itemcommand event DOES NOT fire for either button (nor does any other datagrid event). When the datagrid binds the third time, the itemcommand event fires just fine, so on and so on.
I am binding to a rather large class with several sub-classes inside. Again, the databind Appears to work fine for each trip through. I have viewstate set to true for the datagrid. I have autoevebtwireup set to false for the page. I have pagination turned off.
Has anyone else had this similar problem?
I'm running Visual Studio .Net 2003, Windows XP Pro op system, connecting to a SQL Server backend. This is my first experience with databinding problems.
Thanks in advance,