# TreeDataGridRows

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

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

```rust
struct TreeDataGridRows
```

The rows of a presentation (`TreeDataGridRows<TModel>`).

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

## Members

- [`new`](#function-new)
- [`is_subscribed`](#function-is_subscribed)
- [`resume`](#function-resume)
- [`suspend`](#function-suspend)
- [`clear_cell_pool`](#function-clear_cell_pool)
- [`pooled_cell_count`](#function-pooled_cell_count)
- [`set_rows`](#function-set_rows)
- [`core_rows`](#function-core_rows)
- [`dispose`](#function-dispose)

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

### new

```rust
fn new(rows: Rc<dyn IRows>) -> Rc<Self>
```



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

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

### is_subscribed

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

Whether the rows follow the changes of the core's rows.

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

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

### resume

```rust
fn resume(self: &Self)
```

Follows the changes of the core's rows again (`Resume`).

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

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

### suspend

```rust
fn suspend(self: &Self)
```

Stops following the core's rows and empties the cell pool (`Suspend`).

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

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

### clear_cell_pool

```rust
fn clear_cell_pool(self: &Self)
```

Disposes the pooled cells (`ClearCellPool`).

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

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

### pooled_cell_count

```rust
fn pooled_cell_count(self: &Self) -> usize
```

The number of cells in the pool.

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

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

### set_rows

```rust
fn set_rows(self: &Self, rows: Rc<dyn IRows>)
```

Shows other core rows (`SetRows`): a reset when they are not the rows shown.

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

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

### core_rows

```rust
fn core_rows(self: &Self) -> Rc<dyn IRows>
```

The core's rows.

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

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

### dispose

```rust
fn dispose(self: &Self)
```

Stops following the core's rows (`Dispose`).

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

## 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`
- [`ITreeDataGridRows`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itreedatagridrows/)
- [`IReusableCellRows`](/docs/0.5.0/api/ferroui-controls-treedatagrid/presentation/trait-ireusablecellrows/)

## Availability

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