# TreeGridViewDragInfo class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class TreeGridViewDragInfo
```

Extra drag information when dragging to a [TreeGridView](https://eto.picoe.ca/api/type/eto.forms.treegridview.md).

**Remarks:** Use this information to determine where the user is dragging to, and also to change where the drag indicator will be shown by modifying the Item and ChildIndex properties.

## Constructors

- [TreeGridViewDragInfo](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/ctor.md): Initializes a new instance of the `TreeGridDragInfo` class.

## Properties

- [ChildIndex](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/childindex.md): Gets the index of the [TreeGridViewDragInfo.Item](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/item.md) relative to the [TreeGridViewDragInfo.Parent](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/parent.md).
- [Control](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/control.md): Gets the parent tree control this info is for.
- [InsertIndex](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/insertindex.md): Gets or sets the insertion index where the user is dragging to as a child of Item, or -1 if dragging over the Item.
- [IsChanged](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/ischanged.md): Gets a value indicating whether this `TreeGridDragInfo` is changed.
- [Item](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/item.md): Gets or sets the item to drag to, or null if dragging below the [TreeGridViewDragInfo.Parent](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/parent.md) node.
- [Parent](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/parent.md): Gets or sets the parent node of the [TreeGridViewDragInfo.Item](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/item.md) to drag to.
- [Position](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/position.md): Gets a value indicating whether the drop should insert before, after, or over the [TreeGridViewDragInfo.Item](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/item.md).

## Methods

- [RestrictToInsert](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/restricttoinsert.md): Helper to restrict the drop to insert items only without allowing draging over existing items.
- [RestrictToNode](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/restricttonode.md): Restricts the drop to an item or a child within the specified number of levels.
- [RestrictToOver](https://eto.picoe.ca/api/type/eto.forms.treegridviewdraginfo/restricttoover.md): Helper to restrict to drop on top an existing item without allowing any insertion.
