DataGridColumnHeader.SortDirection Property

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft