Aug 07, 2008 04:13 PM|Nigel Basel|LINK
Hey Steve, Really nice piece of work. I am unworthy (and very impressed). What I don't entirely get is why the Dynamic Data Manager fails to work. When I tried the same thing, I was using the Manager, and it worked for displaying the columns, but didn't
work for the updates. So I guess youve replaced some of what it does. Still it woudl be nice to really get it.
Of course every good answer deserves another question - because if you were feeling dumb, then I am really dumb. I seem to be failing at every step of the way here. To implement an insert, we need to put a details view in with the grid (as in the ListDetails)
(or am I really being dumb). So in the normal ListDetails page, the connection between the two is taken care of by the dynamic data manager, In this case, I have added a details view as follows below the grid view :
<asp:Panel ID="DetailsPanel" runat="server">
<asp:DynamicControlParameter ControlId="GridView1" />
Then I have hooked in a field generator for the rows in the details view, and have set up the where clause in the same way as for the grid. Now I can successfully insert rows to my hearts content. The problem is that the grid does not get updated after
each insert. As soon as I refresh the page I can see all the new records, but after each insert nothing. I presume there is yet another secret handshake to manually connect the two controls. Any ideas?