# DataRepeaterAddRemoveItemsCancelEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides data for the [UserDeletingItems](https://docs.wisej.com/api/wisej.web/containers/datarepeater/..#userdeletingitems) event.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DataRepeaterAddRemoveItemsCancelEventArgs : CancelEventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DataRepeaterAddRemoveItemsCancelEventArgs
    Inherits CancelEventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataRepeaterAddRemoveItemsCancelEventArgs(index, count)

Initializes a new instance of the [DataRepeaterAddRemoveItemsCancelEventArgs](https://docs.wisej.com/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemscanceleventargs) class.

| Name      | Type                                                        | Description                                                                                                                                         |
| --------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **index** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the [DataRepeaterItem](https://docs.wisej.com/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem) that is being deleted. |
| **count** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The number of items being deleted.                                                                                                                  |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Gets the number of items being deleted.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the item that is being deleted.

## Used By

| Name                                                                                                                                                                | Description                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataRepeaterAddRemoveItemsCancelEventHandler](https://docs.wisej.com/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemscanceleventhandler) | Represents the method that handles the [UserDeletingItems](https://docs.wisej.com/api/wisej.web/containers/datarepeater/..#userdeletingitems) event. |
