Datagrid IN a Datalist
-
So I have this datagrid in a web user control. The grid has some basic link buttons for functionality like Edit, Add, Update and Cancel. They all work fine when the user control is put on a web page. I came across a need to have this datagrid repeat with some other information so I put the user control in a datalist. Now only the Edit and Add buttons work. I set some breakpoints, and it looks like any of the buttons located in the grid's EditItemTemplate will not fire their grid events. I set up some events and breakpoints in the datalist as well to see if the events were bubbling up somehow, but they weren't. When I click on the Update or Cancel link buttons the grid reverts back to EditItemIndex equal to -1 or at least the edit line is going back to the regular ItemTemplate. I set breakpoints everyplace I was setting the grid's EditItemIndex, and again no dice. Has anybody run into this problem? Anybody figure out a solution?