# IRetargetableCellBinding

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

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

```rust
trait IRetargetableCellBinding
```

A binding whose root object can be replaced, so that a cell can be retargeted to another row
(`IRetargetableTypedBindingExpression`).

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

## Members

- [`try_set_root`](#function-try_set_root)
- [`try_suspend_root`](#function-try_suspend_root)

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

### try_set_root

```rust
fn try_set_root(self: &Self, root: Option<&BoxedValue>) -> bool
```

Points the binding at `root`; false when `root` is not a model of the binding's type.

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

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

### try_suspend_root

```rust
fn try_suspend_root(self: &Self) -> bool
```

Releases the root and the subscriptions of the binding, keeping what a later
`try_set_root` needs.

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

## Trait implementations

- [`IRetargetableCellBinding`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-iretargetablecellbinding/)

## Availability

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