Back to Devexpress

SortDescriptionBase.FieldName Property

maui-devexpress-dot-maui-dot-collectionview-dot-sortdescriptionbase.md

latest1.5 KB
Original Source

SortDescriptionBase.FieldName Property

Gets or sets the name of a data source field whose values are used to sort the Collection View items.

Namespace : DevExpress.Maui.CollectionView

Assembly : DevExpress.Maui.CollectionView.dll

NuGet Package : DevExpress.Maui.CollectionView

Declaration

csharp
public string FieldName { get; set; }

Property Value

TypeDescription
String

The name of a data source field.

|

Example

The following example sorts collection view items in descending order by the Name data field:

xaml
<dxcv:DXCollectionView ...>
    <dxcv:DXCollectionView.SortDescriptions>
        <dxcv:SortDescription FieldName="Name" SortOrder="Descending"/>
    </dxcv:DXCollectionView.SortDescriptions>
</dxcv:DXCollectionView>

See Also

Filter, Sort, and Group Data in Collection View for .NET MAUI

SortDescriptionBase Class

SortDescriptionBase Members

DevExpress.Maui.CollectionView Namespace