469,929 Members | 1,753 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

Dodgy Nested Grid Update!

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?

Cheers,
Adam
Nov 19 '05 #1
1 1015

"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

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Yasir Hussain | last post: by
4 posts views Thread by Filippo Pandiani | last post: by
reply views Thread by Linus | last post: by
reply views Thread by edgarecayce | last post: by
6 posts views Thread by Steve Hershoff | last post: by
2 posts views Thread by Me LK | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.