AllowsColumnReorder Property

GridView.AllowsColumnReorder Property


Gets or sets whether columns in a GridView can be reordered by a drag-and-drop operation.

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

public bool AllowsColumnReorder { get; set; }

Property Value

Type: System.Boolean

true if columns can be reordered; otherwise, false. The default value is true.

Identifier Field


Metadata properties set to true


The following example shows how to set the AllowsColumnReorder property.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft