# TreeDataGridColumn

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

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

```rust
trait TreeDataGridColumn: Any
```

A declarative column (`abstract class TreeDataGridColumn`).

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

## Members

- [`base`](#function-base)
- [`create_untyped_column`](#function-create_untyped_column)
- [`initialize_from_sample`](#function-initialize_from_sample)
- [`is_hierarchical_expander`](#function-is_hierarchical_expander)
- [`as_any`](#function-as_any)

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

### base

```rust
fn base(self: &Self) -> &TreeDataGridColumnBase
```

The members every column has.

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

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

### create_untyped_column

```rust
fn create_untyped_column(self: &Self) -> Rc<dyn IViewColumn<BoxedValue>>
```

The view column of the generated source, of untyped models (`CreateUntypedColumn`).
## Panics
When the column lacks what it needs (a binding, a template; `InvalidOperationException`).

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

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

### initialize_from_sample

```rust
fn initialize_from_sample(self: &Self, _sample_model: Option<&BoxedValue>)
```

Tells the column a model of the items, before the source is generated (`InitializeFromSample`).

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

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

### is_hierarchical_expander

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

Whether the column is a hierarchical expander column, which makes the generated source
hierarchical (`is TreeDataGridHierarchicalExpanderColumn`).

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

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

### as_any

```rust
fn as_any(self: &Self) -> &dyn Any
```



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

## Trait implementations

- [`TreeDataGridColumn`](/docs/0.5.0/api/ferroui-controls-treedatagrid/trait-treedatagridcolumn/)

## Availability

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