Formview itemupdating not firing

29 Nov

I can see the control switch to edit mode properly, but after clicking the save icon, the overriden Item Updating event that I wrote does not fire.If I set the Default Mode of the control to Edit, it works as expected, but I do not want to leave it in edit mode all the time. Details View I am using a Details View to update an existing SQL Server record.I have problem with Item Updating event in Details view.When I set Auto Generate Rows to true, everything works fine.I don't like using the Form Collection because it's at best a hack and ASP. Apologies if this is something you've already answered - I have checked through the forums carefully for some time but could not find this precise issue covered anywhere else.

i am not using data source controls, i am handling the edit and updates with my own code.The situation is pretty simple - I have a Grid View and Details View bound to a SQL Server datasource; there are 4 employee records listed in my grid and a select for each to view (detailsview) further info on each employee. Details View in ajax update panel do not fire update event i have a gridview, when the user select a row there it populate the row details in detailsview, both the detailsview and gridview are in ajax update panel.The standard Command Field column control has been used in Details View to provide Edit - Update/Cancel buttons and that all worked fine with Item Updating getting called and processed correctly. Firing an event handler on an button which is generated dynamically in an user control present in update panel I have created an user control which is placed in update panel. the point here whne the row is selected in gridview the detailsview works fine.I want the default view to be Read Only and to display an edit icon to switch to edit mode.When in edit mode, I want to display save/cancel icons to commit or cancel the update.