# ICellColumn

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

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

```rust
trait ICellColumn
```

A view column that creates the cells of rows (`IColumn<TModel>.CreateCell`), with the row and
its model untyped.

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

## Members

- [`create_cell`](#function-create_cell)
- [`try_reuse_cell`](#function-try_reuse_cell)
- [`select_value`](#function-select_value)
- [`is_text_search_enabled`](#function-is_text_search_enabled)

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

### create_cell

```rust
fn create_cell(self: &Self, row: &RowRef) -> CellRef
```

The cell of `row`.

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

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

### try_reuse_cell

```rust
fn try_reuse_cell(self: &Self, _cell: &CellRef, _row: &RowRef) -> bool
```

The cell of `row`, reusing `cell` when the column can retarget it; `None` when it cannot
(`ICellColumn.TryReuseCell`).

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

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

### select_value

```rust
fn select_value(self: &Self, _model: &BoxedValue) -> Option<String>
```

For a column that searches its text (`ITextSearchableColumn`): the text of `model`.

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

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

### is_text_search_enabled

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

Whether the column takes part in type-ahead search.

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

## Trait implementations

- [`ICellColumn`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icellcolumn/)

## Availability

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