# TableView

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

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

```rust
struct TableView
```

A read-only tabular control that presents items in configurable columns.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`columns_property`](#function-columns_property)
- [`can_user_resize_columns_property`](#function-can_user_resize_columns_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`display_member_binding`](#function-display_member_binding)
- [`set_display_member_binding`](#function-set_display_member_binding)
- [`item_template`](#function-item_template)
- [`set_item_template`](#function-set_item_template)
- [`columns`](#function-columns)
- [`set_columns`](#function-set_columns)
- [`can_user_resize_columns`](#function-can_user_resize_columns)
- [`set_can_user_resize_columns`](#function-set_can_user_resize_columns)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L33)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<TableView>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L33)

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

### columns_property

```rust
fn columns_property() -> &'static DirectProperty<TableView, Option<FerroList<Ref<TableViewColumn>>>>
```

Defines the `Columns` property.

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

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

### can_user_resize_columns_property

```rust
fn can_user_resize_columns_property() -> &'static StyledProperty<bool>
```

Defines the `CanUserResizeColumns` property.

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

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L130)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L139)

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

### display_member_binding

```rust
fn display_member_binding(self: &Self) -> Option<AssignedBinding>
```

The binding of the display member of the items control: it has no
effect on a table view.

> **Deprecated.** DisplayMemberBinding has no effect on a TableView. Use TableViewColumn.Binding instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L146)

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

### set_display_member_binding

```rust
fn set_display_member_binding(self: &Self, value: Option<AssignedBinding>)
```



> **Deprecated.** DisplayMemberBinding has no effect on a TableView. Use TableViewColumn.Binding instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L151)

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

### item_template

```rust
fn item_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```

The item template of the items control: it has no effect on a table
view.

> **Deprecated.** ItemTemplate has no effect on a TableView. Use TableViewColumn.CellTemplate instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L158)

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

### set_item_template

```rust
fn set_item_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
```



> **Deprecated.** ItemTemplate has no effect on a TableView. Use TableViewColumn.CellTemplate instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L163)

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

### columns

```rust
fn columns(self: &Self) -> FerroList<Ref<TableViewColumn>>
```

Gets or sets the collection of columns displayed by this
`TableView`. The collection is created when it is first read.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L169)

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

### set_columns

```rust
fn set_columns(self: &Self, value: Option<FerroList<Ref<TableViewColumn>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L184)

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

### can_user_resize_columns

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

Gets or sets a value indicating whether the user can resize columns
by dragging the separator between column headers.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L208)

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

### set_can_user_resize_columns

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/table_view.rs#L212)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`SelectingItemsControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-selectingitemscontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`ItemsControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-itemscontrolimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TableView>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`SelectingItemsControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-selectingitemscontrolimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`ItemsControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-itemscontrolimpl/)

## Availability

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