# TreeViewNodeDragEventHandler

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 TreeViewNodeDragEventHandler(Object sender, TreeViewNodeDragEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

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