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 to
Ok I know the reply is really late, but I just encountered the same problem.
I was Databinding everytime I loaded the page, and when there was a post back the gridview requeried. But using:
if(!IsPostBack) { //code used to bind on first page load }
in the Page_Load event seemed to have helped :)