This documentation is archived and is not being maintained.

ListViewCancelMode Enumeration

Determines the type of operation that the user was performing when the Cancel button was clicked in a ListView item.

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

public enum class ListViewCancelMode

Member nameDescription
CancelingEditThe user canceled an edit operation.
CancelingInsertThe user canceled an insert operation.

The ListViewCancelMode enumeration is used to represent the type of operation that the user was performing when the Cancel button was clicked in a ListView item. (A Cancel button is a button whose CommandName property set to "Cancel".)

The following example shows how to use the ListViewCancelMode enumeration to check which operation is being canceled in a ListView item.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: