Export (0) Print
Expand All
Expand Minimize

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft