Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Jun 19, 2007 08:54 PM|LINK
I see that you do data binding manually. However, do you bind your controls to data source?
If so, it means that you bind data bind GridView twice and you lose values because of this.
If you prefer manual data binding remove DataSourceID property and set DataSource property immediately before calling DataBind. Moreover, be sure that you don't call DataBind twice.
You may disable ViewState for gridview if you rebind cotntrol on every postback, unless you need it for some other reason.