FormView.DeleteItem Method ()

 

Deletes the current record in the FormView control from the data source.

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

abstract DeleteItem : unit -> unit
override DeleteItem : unit -> unit

Use the DeleteItem method to programmatically delete the current record in the FormView control from the data source. This method is commonly used when you need to delete the current record from outside of the FormView control, such as from a different control on the page. Calling this method also raises the ItemDeleted and ItemDeleting events.

The following example demonstrates how to use the DeleteItem method to programmatically delete the current record in a FormView control from the data source.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: