"Adam Knight" wrote:
Hi all,
I have a data list whose item template contains a user control which
consists of a datagrid.
Everything is working fine, except one glaring problem!!!
I enter updated info into the edit textboxes provided by the grids edt item
template and click update.
The updates don't take affect. It appears from my debugging that when the
form is posted back the original values
are posted and not the updated values.
Anyone have any ideas on how to get around this?
Or have any ideas on what is going on?
Your implementation of a nested DataGrid can affect the ViewState of the
EditCommandColumn.
You would not have a problem placing a grid inside a DataList if your
implementation, for example, were as simple as placing everything on the aspx
page without using the Codebehind, e.g.:
http://www.societopia.net/samples/datalist2.aspx
But if you are using the Codebehind class and building your nested DataGrid
upon Databinding the DataList, then you need to manage the ViewState for the
EditCommandColumn by yourself, as in this example:
http://www.societopia.net/samples/datalist1.aspx
Let me know if this solved the problem. Otherwise post the significant
pieces of code of your implementation.
---
Phillip Williams
http://www.societopia.net http://www.webswapp.com