Hello!
I am trying to list some data from a database. It is a row, from one table,
and then a set of rows beneath that from another table – and it keeps
repeating. First, is there a way to do this in ASP.NET 2.0? This app is a 1.1
upgrade, and I had to use code to set this up (two long foreach loops). I
tried to have a GridView and embed another GridView, but the embedded
GridView disappeared from the setup.
From what I was seeing, the code breaks down when it comes to postbacks and
view state. If the code-generated table was saved in view state, and
restored, then the code-generated buttons would then also be able to fire.
The sub-rows each have add/modify/delete buttons. The code works great in
responding to the first click, but once the page displays the “add/modify”
screen view state doesn’t “remember” that the row was a modify row, and it
resets, so ASP.NET doesn’t know that a button (that is, the “OK” button) was
pushed, and doesn’t fire the event. The strange thing is that this problem
started happening with the upgrade to 2.0.
I apologize, but I am quite new to 2.0, but am excited to see these great
new features.
JMax