# GridViewDragInfo 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 GridViewDragInfo
```

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

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

## Properties

- [Control](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/control.md): Gets the parent tree control this info is for.
- [Index](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/index.md): Gets or sets the insertion index where the user is dragging to as a child of Item, or -1 if dragging ontop of the Item.
- [InsertIndex](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/insertindex.md): Gets the insertion index of drop operation, or -1 if not an insert (dragging over)
- [IsChanged](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/ischanged.md): Gets a value indicating whether this `GridDragInfo` is changed.
- [Item](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/item.md): Gets or sets the item the user is dragging to.
- [Position](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/position.md): Gets the position of the ChildIndex relative to the item under the mouse cursor.

## Methods

- [RestrictToInsert](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/restricttoinsert.md): Helper to restrict the drop to insert items only without allowing draging over existing items.
- [RestrictToOver](https://eto.picoe.ca/api/type/eto.forms.gridviewdraginfo/restricttoover.md): Helper to restrict to drop on top an existing item without allowing any insertion.
