DetailsView.DeleteItem Method ()

 

Deletes the current record from the data source.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual void DeleteItem()

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

.NET Framework
Available since 2.0
Return to top
Show: