# selection

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

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

```rust
module selection
```

`Selection/`: how the selections of the core handle the input of the control.

The selection models are the core's (`ferroui_treedatagrid_core::selection`): the row and cell
selections of a source, the tree selection model, its indexes and change arguments. The
reference's copies of them in the control project are not ported; nor are its classic column
selection model (`TreeDataGridColumnSelectionModel`, `ITreeDataGridColumnSelectionModel`) and
the product of selected columns and rows (`SelectedCellIndexes`), which only its classic cell
selection used: the core's cell selection keeps its own selection of columns and computes the
selected cells (`TreeDataGridCellSelectionModel::selected_indexes`), and the arguments of its
changes are the core's `TreeDataGridCellSelectionChangedEventArgs`.

This module holds the interactions of the control with those selections, and the typed
operations the untyped control needs of a source's model type
([`register_tree_data_grid_model`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-register_tree_data_grid_model/)).

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

## Contents

- [`TreeDataGridCellSelectionInteraction`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/struct-treedatagridcellselectioninteraction/) — struct
- [`TreeDataGridRowSelectionInteraction`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/struct-treedatagridrowselectioninteraction/) — struct
- [`as_cell_selection`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-as_cell_selection/) — function
- [`as_row_selection`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-as_row_selection/) — function
- [`clear_show_expander`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-clear_show_expander/) — function
- [`is_source_registered`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-is_source_registered/) — function
- [`register_tree_data_grid_model`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-register_tree_data_grid_model/) — function
- [`register_tree_data_grid_source`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-register_tree_data_grid_source/) — function
- [`source_support`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-source_support/) — function
- [`update_show_expander`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/function-update_show_expander/) — function
- [`ITreeDataGridModelSupport`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-itreedatagridmodelsupport/) — trait
- [`ITreeDataGridSelectionFactory`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-itreedatagridselectionfactory/) — trait
- [`ITreeDataGridSourceSupport`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-itreedatagridsourcesupport/) — trait
- [`IUntypedCellSelection`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-iuntypedcellselection/) — trait
- [`IUntypedRowSelection`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-iuntypedrowselection/) — trait
- [`ITreeDataGridSelectionInteraction`](/docs/0.5.0/api/ferroui-controls-treedatagrid/selection/trait-itreedatagridselectioninteraction/) — trait

## Availability

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