# ITreeDataGridSourceSupport

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

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

```rust
trait ITreeDataGridSourceSupport: ITreeDataGridSelectionFactory
```

The typed operations on a source type: the selections it can create and the changes of its
column list, which the untyped source contract does not expose (`model.Columns as
INotifyCollectionChanged`).

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

## Members

- [`add_columns_changed`](#function-add_columns_changed)
- [`remove_columns_changed`](#function-remove_columns_changed)

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

### add_columns_changed

```rust
fn add_columns_changed(self: &Self, source: &Rc<dyn ITreeDataGridSource>, handler: Rc<dyn Fn() -> ()>) -> Option<u64>
```

Subscribes `handler` to the changes of the columns of `source`; `None` when `source` is not
of the type.

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

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

### remove_columns_changed

```rust
fn remove_columns_changed(self: &Self, source: &Rc<dyn ITreeDataGridSource>, token: u64)
```

Ends a subscription of `add_columns_changed`.

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

## Availability

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