SortDescriptions Property
Gets the Sort criteria to sort items in collection.
Definition
Namespace: Avalonia.Collections
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)
- C#
- VB
- F#
public DataGridSortDescriptionCollection SortDescriptions { get; }
Public ReadOnly Property SortDescriptions As DataGridSortDescriptionCollection
Get
abstract SortDescriptions : DataGridSortDescriptionCollection with get
override SortDescriptions : DataGridSortDescriptionCollection with get
Property Value
DataGridSortDescriptionCollectionImplements
IDataGridCollectionView.SortDescriptionsRemarks
Clear a sort criteria by assigning SortDescription.Empty to this property. One or more sort criteria in form of can be used, each specifying a property and direction to sort by.
Exceptions
| NotSupportedException | Simpler implementations do not support sorting and will throw a NotSupportedException. Use property to test if sorting is supported before adding to SortDescriptions. |
See Also
Reference
DataGridCollectionView Class
Avalonia.Collections Namespace
DataGridSortDescription
CanSort