Detailsview fired event itemupdating
The table in Figure 2 details the supported events. It is interesting to note that the Item Command event doesn t fire if the user clicks on the Edit or Insert buttons or any other standard buttons.Clicking these buttons is handled internally to ensure the expected behavior.Next, you can use a Grid View control on another, or the same, page to retrieve any just-inserted records.As you can see in Figure 1, input fields are empty and don t suggest any values to users.
For example, displaying the contents of a single record of data is a necessary practice when you build master/detail views. NET 2.0, the Details View control renders a single record at a time from its associated data source, optionally providing paging buttons to navigate between records and Create/Read/Update/Delete (CRUD) capabilities.
So the Item Command event, although promising, is not the right handle.
Reading through Figure 2, it s easy to see that another event can be taken into account the Item Created event.
The default set of data fields includes templated, image checkboxes, and hyperlink fields.
For more information on the Details View control, see "Getting Under the Detail Views Control.
The Item Created event is fired immediately after a Details View item is created.