# PresentationColumns

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

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

```rust
struct PresentationColumns
```

The view columns of a presentation (`PresentationColumns`): the column list of the control,
whose width changes are written back to the core columns.

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

## Members

- [`list`](#function-list)
- [`set_column_width`](#function-set_column_width)

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

### list

```rust
fn list(self: &Self) -> &Rc<crate::models::ColumnListBase>
```

The column list.

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

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

### set_column_width

```rust
fn set_column_width(self: &Self, index: i32, width: GridLength)
```

Sets the width of the column at `index` and of its core column (`SetColumnWidth`).

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

## 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`
- [`IColumns`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icolumns/)

## Availability

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