So I nested a Gridview inside of a bound Accordion control. The nested Gridview has an edit/update event on it. Everything works great. The customer decided they didn't like the animations associated with the Accordion and just wanted each section to be
static and open. I thought this was going to be a straight forward easy conversion to a ListView with a nested Gridview. The conversion was easy and only had to change a few minor things but now the Update event doesn't recieve the changed values from the
textboxes/dropdowns in the edit row. They all default back to the original bound values. I couldn't figure out why it was losing the values, so I tried a DataList with the nested Gridview, same problem. Tried a Repeater with the nested Gridview, same problem.
Converted it back to the Accordion with nested Gridview and it works just as great as it did the first time! I'm pulling my hair out, what is the problem here?!
Note I'm not making ANY logical or databinding changes here, simply changing the types of controls and dataitems that are being referenced to the event routines. Any ideas are appreciated.
Cattrah
Member
401 Points
102 Posts
Nested Gridview Update Event
Apr 27, 2012 01:02 AM|LINK
So I nested a Gridview inside of a bound Accordion control. The nested Gridview has an edit/update event on it. Everything works great. The customer decided they didn't like the animations associated with the Accordion and just wanted each section to be static and open. I thought this was going to be a straight forward easy conversion to a ListView with a nested Gridview. The conversion was easy and only had to change a few minor things but now the Update event doesn't recieve the changed values from the textboxes/dropdowns in the edit row. They all default back to the original bound values. I couldn't figure out why it was losing the values, so I tried a DataList with the nested Gridview, same problem. Tried a Repeater with the nested Gridview, same problem. Converted it back to the Accordion with nested Gridview and it works just as great as it did the first time! I'm pulling my hair out, what is the problem here?!
Note I'm not making ANY logical or databinding changes here, simply changing the types of controls and dataitems that are being referenced to the event routines. Any ideas are appreciated.