New to Telerik UI for WinForms? Start a free 30-day trial

Provides the item and cancellation state for cancelable list-view operations.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ListViewItemCancelEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsListViewItemCancelEventArgs

Derived Classes: ListViewItemEditingEventArgsListViewItemValidatingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Creates event data for the specified item with an initial cancellation state.

C#
public ListViewItemCancelEventArgs(ListViewDataItem item, bool cancel)
Parameters:itemListViewDataItem

The item involved in the operation.

cancelbool

The initial value of the inherited Cancel property.

Creates event data for the specified item with cancellation unset.

C#
public ListViewItemCancelEventArgs(ListViewDataItem item)
Parameters:itemListViewDataItem

The item involved in the operation.

Properties

Gets the item involved in the cancelable operation.

C#
public ListViewDataItem Item { get; }
Property Value:

The affected list-view item.

Gets the list-view element that owns the item.

C#
public RadListViewElement ListViewElement { get; }
Property Value:

The item's owning element.