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 Property AllowsColumnReorder As Boolean

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.

<GridView AllowsColumnReorder="true"
          ColumnHeaderToolTip="Employee Information">
Dim myGridView As New GridView()
myGridView.AllowsColumnReorder = True
myGridView.ColumnHeaderToolTip = "Employee Information"

.NET Framework
Available since 3.0
Return to top