Hello,
I have a grid in a dynamically generated user control. The user control is generated in a content page. I have buttons and a dropdown that are displayed in EditItemTemplate when the form is in EditMode. I have tried to attach event handlers for the buttons and the indexchange event of the dropdown but it is not working. I am putting the event handlers in the code behind of the user control. I want to try to put the event handlers in the code behind of the content page but how can I know when the grid is in edit mode when I am in the content page. Also, how would I access the controls in the EditItemTemplate from the content page? Do you have some sample code that does this? Any ideas would help.
Thanks,
Jayvr
I have a grid in a dynamically generated user control. The user control is generated in a content page. I have buttons and a dropdown that are displayed in EditItemTemplate when the form is in EditMode. I have tried to attach event handlers for the buttons and the indexchange event of the dropdown but it is not working. I am putting the event handlers in the code behind of the user control. I want to try to put the event handlers in the code behind of the content page but how can I know when the grid is in edit mode when I am in the content page. Also, how would I access the controls in the EditItemTemplate from the content page? Do you have some sample code that does this? Any ideas would help.
Thanks,
Jayvr