DataGridColumnHeader.SortDirection Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value that indicates whether the DataGrid is sorted by the associated column and whether the column values are in ascending or descending order.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Nullable<ListSortDirection> SortDirection { get; }

Property Value

Type: System.Nullable<ListSortDirection>

The sort direction of the column or null if unsorted.

.NET Framework
Available since 4.0
Return to top