# TreeDataGridRowDragEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/struct-treedatagridrowdrageventargs/

**struct** · [`ferroui-controls-treedatagrid`](/docs/0.5.0/api/ferroui-controls-treedatagrid/) · v0.5.0

```rust
struct TreeDataGridRowDragEventArgs
```

Provides data for the `RowDragOver` and `RowDrop` events of the grid (`TreeDataGridRowDragEventArgs`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_row_drag_event_args.rs#L47)

## Members

- [`new`](#function-new)
- [`inner`](#function-inner)
- [`target_row`](#function-target_row)
- [`position`](#function-position)
- [`set_position`](#function-set_position)

<a id="function-new"></a>

### new

```rust
fn new(routed_event: &RoutedEvent<TreeDataGridRowDragEventArgs>, row: Option<Ref<TreeDataGridRow>>, inner: DragEventArgs) -> Self
```

The arguments of `routed_event` for a drag over `row`, described by `inner`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_row_drag_event_args.rs#L59)

<a id="function-inner"></a>

### inner

```rust
fn inner(self: &Self) -> &DragEventArgs
```

The arguments of the drag and drop operation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_row_drag_event_args.rs#L69)

<a id="function-target_row"></a>

### target_row

```rust
fn target_row(self: &Self) -> Option<&Ref<TreeDataGridRow>>
```

The row being dragged over.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_row_drag_event_args.rs#L74)

<a id="function-position"></a>

### position

```rust
fn position(self: &Self) -> TreeDataGridRowDropPosition
```

How the data should be dropped into the target row.

For drag operations, the value of this property controls the adorner displayed when
dragging. For drop operations, controls the final location of the drop.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_row_drag_event_args.rs#L82)

<a id="function-set_position"></a>

### set_position

```rust
fn set_position(self: &Self, value: TreeDataGridRowDropPosition)
```

Sets `position`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_row_drag_event_args.rs#L87)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
