DetailsView.DeleteItem Method


Deletes the current record from the data source.

 virtual void DeleteItem();
public virtual void DeleteItem ();
abstract member DeleteItem : unit -> unit
override this.DeleteItem : unit -> unit
Public Overridable Sub 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.

Applies to