# TreeDataGridCellSelectionInteraction

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

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

```rust
struct TreeDataGridCellSelectionInteraction
```

The interaction of a cell selection with the control (`TreeDataGridCellSelectionInteraction<TModel>`).

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

## Members

- [`new`](#function-new)
- [`selection`](#function-selection)
- [`dispose`](#function-dispose)

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

### new

```rust
fn new(source: Rc<dyn ITreeDataGridSource>, selection: Rc<dyn IUntypedCellSelection>) -> Rc<Self>
```

The interaction of the cell selection `selection` of `source`.

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

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

### selection

```rust
fn selection(self: &Self) -> &Rc<dyn IUntypedCellSelection>
```

The cell selection.

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

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

### dispose

```rust
fn dispose(self: &Self)
```

Stops following the selection (`Dispose`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`ITreeDataGridSelectionInteraction`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-itreedatagridselectioninteraction/)
- `Drop`

## Availability

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