# ItemDragEventHandler

Namespace: **Wisej.Web**

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

Represents the method that will handle the [ItemDrag](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/..#itemdrag) event of a [TreeView](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview) control.

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

```csharp
public delegate void ItemDragEventHandler(Object sender, ItemDragEventArgs e)
```

{% endtab %}

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

```visual-basic
Public Delegate Sub ItemDragEventHandler(ByVal sender As [Object], ByVal e As ItemDragEventArgs)
```

{% endtab %}
{% endtabs %}

![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-72ee9aade2e798319ef8cd025a59345103436978%2Fdeprecated.png?alt=media)**Deprecated**: This handler is deprecated. Use TreeViewNodeDragEventHandler.

## Parameters

| Name       | Type                                                                                                           | Description                                                                                                                                     |
| ---------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **sender** | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                                  | The source of the event.                                                                                                                        |
| **e**      | [ItemDragEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.itemdrageventargs) | An [ItemDragEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.itemdrageventargs) that contains the event data. |

## Fired By

| Name                                                                                                  | Description                                                                                                                         |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| [TreeNode.ItemDrag](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.treenode#itemdrag) | Fired when the user begins dragging a [TreeNode](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.treenode). |
| [TreeView.ItemDrag](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/..#itemdrag)        | Fired when the user begins dragging a node.                                                                                         |
