Even when it does change mode, regardless of which control I hit, the program will randomly decide if it is going to go into edit mode or update mode.
So I might hit update and get the insert mode, or vice versa.
on the modechanging event ensure that you do the data Bind() last after you have set the change Mode or it will not take effect and will require the edit button to be pressed twice.
Herpes verdict in Portland: Woman wins 900, 000 after getting disease from date, Published: Monday, June 04, 2012, formview fired event itemupdating which wasn t handled Updated: Tuesday, June 05.
I seem to have a problem with mode changing when using my detailsview control. protected void Detail View_Mode Changing(object sender, Details View Mode Event Args e) Now, when I click on edit or insert and trace, the program hits the right event, but I have to hit the button twice for the control to change mode.
If you do the example without the Mode Changing event you get this error when you click the Edit button: "The Details View 'Details View1' fired event Mode Changing which wasn't handled." You don't need much ASP.
NET: You will now have a detailsview which shows 2 rows, one for Name and the other for Publisher.