# TreeDataGridCellImpl

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

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

```rust
trait TreeDataGridCellImpl: TemplatedControlImpl + $crate::Upcast<TreeDataGridCell>
```

The overridable members introduced by the class.

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

## Members

- [`begin_rebind`](#function-begin_rebind)
- [`end_rebind`](#function-end_rebind)
- [`realize`](#function-realize)
- [`unrealize`](#function-unrealize)
- [`update_value`](#function-update_value)
- [`on_model_property_changed`](#function-on_model_property_changed)

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

### begin_rebind

```rust
fn begin_rebind(this: &Self)
```

Begins a synchronous replacement of this cell's row. The presenter still calls
`unrealize` and `realize`, including their normal clearing/prepared events. This hook is
not called when a cell is merely returned to the recycle pool.

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

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

### end_rebind

```rust
fn end_rebind(this: &Self, realized: bool)
```

Ends the synchronous replacement, including when a lifecycle callback panics.
`realized` is true only when `realize` completed successfully. On false, release any
presentation state retained by `begin_rebind`. Do not assume the model or indexes were
reset if a callback failed partway through.

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

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

### realize

```rust
fn realize(this: &Self, factory: &Rc<TreeDataGridElementFactory>, selection: Option<&dyn ITreeDataGridSelectionInteraction>, model: &CellRef, column_index: i32, row_index: i32)
```

Binds the cell to `model`, the cell of the column at `column_index` in the row at
`row_index`.

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

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

### unrealize

```rust
fn unrealize(this: &Self)
```

Releases the cell's model.

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

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

### update_value

```rust
fn update_value(this: &Self)
```

Reads the value of the model again (`UpdateValue`).

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

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

### on_model_property_changed

```rust
fn on_model_property_changed(this: &Self, property_name: &str)
```

A property of the model changed (`OnModelPropertyChanged`); `property_name` is the name
of the property, empty when all properties changed.

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

## Trait implementations

- [`TreeDataGridCellImpl`](/docs/0.5.0/api/ferroui-controls-treedatagrid/primitives/trait-treedatagridcellimpl/)

## Availability

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