Bewerken

Delen via


DetailsView.DeleteItem Method

Definition

Deletes the current record from the data source.

public:
 virtual void DeleteItem();
public virtual void DeleteItem ();
abstract member DeleteItem : unit -> unit
override this.DeleteItem : unit -> unit
Public Overridable Sub DeleteItem ()

Remarks

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