DataGridColumnHeader.CanUserSort Property

.NET Framework (current version)
 
System_CAPS_noteNote

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

Gets a value that indicates whether the user can click this column header to sort the DataGrid by the associated column.

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

public bool CanUserSort { get; }

Property Value

Type: System.Boolean

true if the user can click this column header to sort the DataGrid by the associated column; otherwise, false.

.NET Framework
Available since 4.0
Return to top
Show: