# TreeDataGridSelectionChangedEventArgs

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

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

```rust
struct TreeDataGridSelectionChangedEventArgs
```

The arguments of `TreeDataGrid`'s `SelectionChanged`
(`TreeDataGridSelectionChangedEventArgs`): the rows deselected and selected, with their models,
and for a cell selection the cells deselected and selected.

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

## Members

- [`new`](#function-new)
- [`from_rows`](#function-from_rows)
- [`from_cells`](#function-from_cells)
- [`deselected_indexes`](#function-deselected_indexes)
- [`selected_indexes`](#function-selected_indexes)
- [`deselected_items`](#function-deselected_items)
- [`selected_items`](#function-selected_items)
- [`deselected_cell_indexes`](#function-deselected_cell_indexes)
- [`selected_cell_indexes`](#function-selected_cell_indexes)

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

### new

```rust
fn new(deselected_indexes: Option<Vec<IndexPath>>, selected_indexes: Option<Vec<IndexPath>>, deselected_items: Option<Vec<Option<BoxedValue>>>, selected_items: Option<Vec<Option<BoxedValue>>>, deselected_cell_indexes: Option<Vec<CellIndex>>, selected_cell_indexes: Option<Vec<CellIndex>>) -> Self
```

The arguments; a list that is `None` is empty.

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

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

### from_rows

```rust
fn from_rows(e: &dyn TreeSelectionModelSelectionChangedEventArgs) -> Self
```

The arguments of a change of rows, from the arguments of the change of a tree selection.

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

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

### from_cells

```rust
fn from_cells(deselected: Vec<CellIndex>, selected: Vec<CellIndex>) -> Self
```

The arguments of a change of cells (`deselectedCellIndexes:`, `selectedCellIndexes:`).

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

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

### deselected_indexes

```rust
fn deselected_indexes(self: &Self) -> Vec<IndexPath>
```

The indexes of the rows that were removed from the selection.

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

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

### selected_indexes

```rust
fn selected_indexes(self: &Self) -> Vec<IndexPath>
```

The indexes of the rows that were added to the selection.

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

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

### deselected_items

```rust
fn deselected_items(self: &Self) -> Vec<Option<BoxedValue>>
```

The models of the rows that were removed from the selection.

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

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

### selected_items

```rust
fn selected_items(self: &Self) -> Vec<Option<BoxedValue>>
```

The models of the rows that were added to the selection.

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

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

### deselected_cell_indexes

```rust
fn deselected_cell_indexes(self: &Self) -> &[CellIndex]
```

The cells that were removed from the selection.

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

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

### selected_cell_indexes

```rust
fn selected_cell_indexes(self: &Self) -> &[CellIndex]
```

The cells that were added to the selection.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `PartialEq`
- `Default`
- [`TreeSelectionModelSelectionChangedEventArgs`](/docs/0.5.0/api/ferroui-treedatagrid-core/selection/trait-treeselectionmodelselectionchangedeventargs/)

## Availability

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