Detailsview itemupdating event not firing
Unfortunately, that makes your project like the Titanic.
So the double-event firing isn’t a bug, it’s just a result of the automatic check-in that occurs when you first add a document to a document library.A Details View Insert Event Args object is passed to the event handler, which allows you to indicate that the insert operation should be canceled.I am attempting to use a Details View control to view some data where the fields returned by the database are determined at runtime.What this means is that you cannot store data in instance-level variables and share that data between event handlers.
For example, if you define an instance level variable in the class to store data in the Item Updating event, then try to access that data in the Item Updated event, you will find that the data is not there when you go to check it in the Item Updated event.
Then it then goes into Edit mode but another issue arises.