GridView loses data during postback

I have an aspx.Page containing a gridview. The gridview is bound in code behind to a datasource only when no postback takes place and has enableviewstate = true (The page too). During a postback, the data bound to the gridview are lost. What could be the reason. Please ask if code is needed.

7
задан AGuyCalledGerald 22 December 2010 в 14:28
поделиться