TreeDataGridSource<TModel> Class
Definition
Represents a typed data source for a Avalonia.Controls.TreeDataGrid control.
public class TreeDataGridSource<TModel>
Methods
| Name | Description |
|---|---|
| ClearSort | Clears any sorting applied to the specified column. Inherited from TreeDataGridSource. |
| SortBy | Requests to sort the source by the specified column. Inherited from TreeDataGridSource. |
Properties
| Name | Description |
|---|---|
| CellSelection | Gets the cell selection model if cell selection is being used. |
| Items | Gets or sets the items in the data source. |
| RowSelection | Gets the row selection model if row selection is being used. |
| AllowTriStateSorting | Gets or sets a value indicating whether tri-state sorting (ascending, descending, unsorted) is allowed when clicking column headers. Inherited from TreeDataGridSource. |
| AutoDragDropRows | Gets or sets a value indicating whether rows can be automatically dragged and dropped within the TreeDataGrid. Inherited from TreeDataGridSource. |
| CanUserResizeColumns | Gets or sets a value indicating whether users can resize columns. Inherited from TreeDataGridSource. |
| CanUserSortColumns | Gets or sets a value indicating whether users can sort columns by clicking column headers. Inherited from TreeDataGridSource. |
| Columns | Gets the columns to be displayed. Inherited from TreeDataGridSource. |
| FrozenColumnCount | Gets or sets the number of columns that are frozen at the start of the grid. Inherited from TreeDataGridSource. |
| IsFiltered | Gets a value indicating whether the data source is filtered. Inherited from TreeDataGridSource. |
| IsHierarchical | Gets a value indicating whether the data source is hierarchical. Inherited from TreeDataGridSource. |
| IsSorted | Gets a value indicating whether the data source is currently sorted. Inherited from TreeDataGridSource. |
| Rows | Gets the rows to be displayed. Inherited from TreeDataGridSource. |
| Selection | Gets or sets the selection model. Inherited from TreeDataGridSource. |
| ShowColumnHeaders | Gets 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
| Name | Description |
|---|---|
| PropertyChanged | Occurs when a property value changes. Inherited from TreeDataGridSource. |