# TreeDataGridRowDragStartedEventArgs

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

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

```rust
struct TreeDataGridRowDragStartedEventArgs
```

Provides data for the `RowDragStarted` event of the grid (`TreeDataGridRowDragStartedEventArgs`).

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

## Members

- [`new`](#function-new)
- [`with_modifiers`](#function-with_modifiers)
- [`allowed_effects`](#function-allowed_effects)
- [`set_allowed_effects`](#function-set_allowed_effects)
- [`models`](#function-models)
- [`data_transfer`](#function-data_transfer)
- [`key_modifiers`](#function-key_modifiers)

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

### new

```rust
fn new(models: Vec<Option<BoxedValue>>) -> Self
```

The arguments of a drag of the rows of `models`.

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

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

### with_modifiers

```rust
fn with_modifiers(models: Vec<Option<BoxedValue>>, key_modifiers: KeyModifiers) -> Self
```

Creates arguments with the modifiers captured by the original pointer press.
Applications can use explicit gestures to distinguish a row move from a reference drag.

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

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

### allowed_effects

```rust
fn allowed_effects(self: &Self) -> DragDropEffects
```

The effects the drag allows.

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

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

### set_allowed_effects

```rust
fn set_allowed_effects(self: &Self, value: DragDropEffects)
```

Sets `allowed_effects`.

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

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

### models

```rust
fn models(self: &Self) -> &[Option<BoxedValue>]
```

The models of the dragged rows.

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

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

### data_transfer

```rust
fn data_transfer(self: &Self) -> &Rc<DataTransfer>
```

Application payloads contributed to the native drag. The grid retains its own row
identity payload, so adding data does not disable normal row reordering. Clones of
these event arguments share this collection, just as they share allowed effects.
The internal row token is set on the first item before the native drag starts so
single-item platform backends retain both row identity and application formats.

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

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

### key_modifiers

```rust
fn key_modifiers(self: &Self) -> KeyModifiers
```

Modifiers at the pointer press that initiated the drag, before selection can change.

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

## 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/).
