Skip to main content

TreeDataGridSource<TModel> Class

Definition

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

Represents a typed data source for a Avalonia.Controls.TreeDataGrid control.

public class TreeDataGridSource<TModel>

Inheritance: object -> TreeDataGridSource -> TreeDataGridSource<TModel>

Methods

NameDescription
ClearSortClears any sorting applied to the specified column. Inherited from TreeDataGridSource.
SortByRequests to sort the source by the specified column. Inherited from TreeDataGridSource.

Properties

NameDescription
CellSelectionGets the cell selection model if cell selection is being used.
ItemsGets or sets the items in the data source.
RowSelectionGets the row selection model if row selection is being used.
AllowTriStateSortingGets or sets a value indicating whether tri-state sorting (ascending, descending, unsorted) is allowed when clicking column headers. Inherited from TreeDataGridSource.
AutoDragDropRowsGets or sets a value indicating whether rows can be automatically dragged and dropped within the TreeDataGrid. Inherited from TreeDataGridSource.
CanUserResizeColumnsGets or sets a value indicating whether users can resize columns. Inherited from TreeDataGridSource.
CanUserSortColumnsGets or sets a value indicating whether users can sort columns by clicking column headers. Inherited from TreeDataGridSource.
ColumnsGets the columns to be displayed. Inherited from TreeDataGridSource.
FrozenColumnCountGets or sets the number of columns that are frozen at the start of the grid. Inherited from TreeDataGridSource.
IsFilteredGets a value indicating whether the data source is filtered. Inherited from TreeDataGridSource.
IsHierarchicalGets a value indicating whether the data source is hierarchical. Inherited from TreeDataGridSource.
IsSortedGets a value indicating whether the data source is currently sorted. Inherited from TreeDataGridSource.
RowsGets the rows to be displayed. Inherited from TreeDataGridSource.
SelectionGets or sets the selection model. Inherited from TreeDataGridSource.
ShowColumnHeadersGets or sets a value indicating whether column headers are shown. Inherited from TreeDataGridSource.

CellSelection Property

Gets the cell selection model if cell selection is being used.

public Avalonia.Controls.Selection.TreeDataGridCellSelectionModel<TModel><TModel> CellSelection { get; set; }

Remarks

This property is equivalent to casting the Avalonia.Controls.Selection property to Avalonia.Controls.Selection.TreeDataGridCellSelectionModel<T>.

Items Property

Gets or sets the items in the data source.

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

RowSelection Property

Gets the row selection model if row selection is being used.

public Avalonia.Controls.Selection.TreeDataGridRowSelectionModel<TModel><TModel> RowSelection { get; set; }

Remarks

This property is equivalent to casting the Avalonia.Controls.Selection property to Avalonia.Controls.Selection.TreeDataGridRowSelectionModel<T>.

Events

NameDescription
PropertyChangedOccurs when a property value changes. Inherited from TreeDataGridSource.