The deletion does not occur if the System.Web.UI.WebControls.DetailsView control is in Insert mode. The DetailsView.ItemDeleting event is raised immediately before the item is deleted. Set the System.ComponentModel.CancelEventArgs.Cancel property to true to cancel the deletion.