473,382 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1113

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yasir Hussain | last post by:
Hope someone can shed some light on the follow issue. With regards to the excellent article by Dino Esposito on Nested DataGrids,...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
0
by: Linus | last post by:
Hi, I have a datagrid nested inside another datagrid, the edit/update/cancel command works fine on the outter datagrid but I'm having problems with the inner one. There are 2 problems and here's...
1
by: Roy | last post by:
How is it done? BTW, I'm reposting this here, as the datagrid newsgroup appears functionally comatose... I have a nested datagrid setup. When one updates the child grid using edit, it also...
0
by: Chris | last post by:
I've been searching all over and think I am close, but keep getting the error "Index out of range" when trying to reference a nested datagrid when an OnEditCommand event is raised. When the...
0
by: edgarecayce | last post by:
I would like to implement a drill-down report using the ASP.NET datagrid. From what I have read online, a way to do this is to have a user control that implements the second-level data when you...
6
by: Steve Hershoff | last post by:
Hi everyone, I've got a strange one here. There are two datagrids on my page, one nested within the other. I'll refer to them as the topmost and secondary datagrids. In the topmost...
0
by: KA NMC | last post by:
I have One Datagrid with a dataset that calls two tables - the First table is the table the user will be editing - which edited on the grid or in a textbox - as the user edits the grid - that info is...
2
by: Me LK | last post by:
I have a set of drop downs nested in a datagrid. Each drop down is a size or color for an item. Each row of the grid has a button which leads to a cart. When a user selects something from the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.