Skip to main content

FlatTreeDataGridSource<TModel> Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

A data source for a Avalonia.Controls.TreeDataGrid which displays a flat grid.

public class FlatTreeDataGridSource<TModel>

Inheritance: TreeDataGridSource<> -> FlatTreeDataGridSource<TModel>

Implements: IDisposable

Constructors

NameDescription
FlatTreeDataGridSource<TModel>No summary available.

FlatTreeDataGridSource<TModel> Constructor

public FlatTreeDataGridSource<TModel>(System.Collections.Generic.IEnumerable<TModel> items)

Parameters

items System.Collections.Generic.IEnumerable<TModel>

Methods

NameDescription
ClearSortNo summary available.
DisposeNo summary available.
FilterNo summary available.
RefreshFilterRefreshes the current filter applied to the collection.
SortByNo summary available.

ClearSort Method

public void ClearSort(Avalonia.Controls.TreeDataGridColumn column)

Parameters

column Avalonia.Controls.TreeDataGridColumn

Dispose Method

public void Dispose()

Filter Method

public void Filter(Func<TModel, bool> filter)

Parameters

filter Func<TModel, bool>

RefreshFilter Method

Refreshes the current filter applied to the collection.

public void RefreshFilter()

Remarks

Call this method if the filter predicate depends on external state which has changed, to re-apply the filter to the collection.

SortBy Method

public bool SortBy(Avalonia.Controls.TreeDataGridColumn column, System.ComponentModel.ListSortDirection direction)

Parameters

column Avalonia.Controls.TreeDataGridColumn

direction System.ComponentModel.ListSortDirection

Returns

bool

Properties

NameDescription
ColumnsGets the columns to be displayed.
IsFilteredNo summary available.
IsHierarchicalNo summary available.
IsSortedNo summary available.
ItemsNo summary available.
RowsNo summary available.
SelectionNo summary available.

Columns Property

Gets the columns to be displayed.

public Avalonia.Controls.TreeDataGridColumns Columns { get; set; }

IsFiltered Property

public bool IsFiltered { get; set; }

IsHierarchical Property

public bool IsHierarchical { get; set; }

IsSorted Property

public bool IsSorted { get; set; }

Items Property

public System.Collections.Generic.IEnumerable<TModel> Items { get; set; }

Rows Property

public Avalonia.Controls.TreeDataGridRows Rows { get; set; }

Selection Property

public Avalonia.Controls.Selection.TreeDataGridSelectionModel Selection { get; set; }