FormView::DeleteItem Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
virtual void DeleteItem()

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: