This documentation is archived and is not being maintained.

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)
XML Namespace:

public bool AllowsColumnReorder { get; set; }
/** @property */
public boolean get_AllowsColumnReorder ()

/** @property */
public void set_AllowsColumnReorder (boolean value)

public function get AllowsColumnReorder () : boolean

public function set AllowsColumnReorder (value : boolean)

<object AllowsColumnReorder="bool" .../>

Property Value

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. For the complete sample, see ListView with a GridView View.

      <GridView AllowsColumnReorder="true"
                ColumnHeaderToolTip="Employee Information">



GridView myGridView = new GridView();
myGridView.AllowsColumnReorder = true; 
myGridView.ColumnHeaderToolTip = "Employee Information";

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0