# TreeDataGridColumnBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/struct-treedatagridcolumnbase/

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

```rust
struct TreeDataGridColumnBase
```

The members every declarative column has (`TreeDataGridColumn`).

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

## Members

- [`header`](#function-header)
- [`set_header`](#function-set_header)
- [`set_header_text`](#function-set_header_text)
- [`width`](#function-width)
- [`set_width`](#function-set_width)
- [`can_user_resize`](#function-can_user_resize)
- [`set_can_user_resize`](#function-set_can_user_resize)
- [`can_user_sort_column`](#function-can_user_sort_column)
- [`set_can_user_sort_column`](#function-set_can_user_sort_column)
- [`allow_tri_state_sorting`](#function-allow_tri_state_sorting)
- [`set_allow_tri_state_sorting`](#function-set_allow_tri_state_sorting)
- [`min_width`](#function-min_width)
- [`set_min_width`](#function-set_min_width)
- [`max_width`](#function-max_width)
- [`set_max_width`](#function-set_max_width)
- [`compare_ascending`](#function-compare_ascending)
- [`set_compare_ascending`](#function-set_compare_ascending)
- [`compare_descending`](#function-compare_descending)
- [`set_compare_descending`](#function-set_compare_descending)
- [`begin_edit_gestures`](#function-begin_edit_gestures)
- [`set_begin_edit_gestures`](#function-set_begin_edit_gestures)
- [`create_common_options`](#function-create_common_options)

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

### header

```rust
fn header(self: &Self) -> Option<BoxedValue>
```



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

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

### set_header

```rust
fn set_header(self: &Self, value: Option<BoxedValue>)
```



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

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

### set_header_text

```rust
fn set_header_text(self: &Self, value: &str)
```

Sets the header to a text.

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

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

### width

```rust
fn width(self: &Self) -> GridLength
```



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

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

### set_width

```rust
fn set_width(self: &Self, value: GridLength)
```



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

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

### can_user_resize

```rust
fn can_user_resize(self: &Self) -> Option<bool>
```



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

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

### set_can_user_resize

```rust
fn set_can_user_resize(self: &Self, value: Option<bool>)
```



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

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

### can_user_sort_column

```rust
fn can_user_sort_column(self: &Self) -> Option<bool>
```



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

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

### set_can_user_sort_column

```rust
fn set_can_user_sort_column(self: &Self, value: Option<bool>)
```



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

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

### allow_tri_state_sorting

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



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

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

### set_allow_tri_state_sorting

```rust
fn set_allow_tri_state_sorting(self: &Self, value: bool)
```



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

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

### min_width

```rust
fn min_width(self: &Self) -> GridLength
```



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

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

### set_min_width

```rust
fn set_min_width(self: &Self, value: GridLength)
```



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

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

### max_width

```rust
fn max_width(self: &Self) -> Option<GridLength>
```



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

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

### set_max_width

```rust
fn set_max_width(self: &Self, value: Option<GridLength>)
```



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

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

### compare_ascending

```rust
fn compare_ascending(self: &Self) -> Option<ObjectComparison>
```



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

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

### set_compare_ascending

```rust
fn set_compare_ascending(self: &Self, value: Option<ObjectComparison>)
```



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

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

### compare_descending

```rust
fn compare_descending(self: &Self) -> Option<ObjectComparison>
```



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

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

### set_compare_descending

```rust
fn set_compare_descending(self: &Self, value: Option<ObjectComparison>)
```



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

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

### begin_edit_gestures

```rust
fn begin_edit_gestures(self: &Self) -> BeginEditGestures
```



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

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

### set_begin_edit_gestures

```rust
fn set_begin_edit_gestures(self: &Self, value: BeginEditGestures)
```



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

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

### create_common_options

```rust
fn create_common_options(self: &Self) -> ColumnOptions<BoxedValue>
```

The options of a view column (`CreateCommonOptions`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Default`

## Availability

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