<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/allowsColumnReordering",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(py)allowsColumnReordering"
  },
  "title" : "allowsColumnReordering"
}
-->

# allowsColumnReordering

A Boolean value indicating whether the table view allows the user to rearrange columns by dragging their headers.

```
var allowsColumnReordering: Bool { get set }
```

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>, which allows the user to rearrange the table view’s columns. You can rearrange columns programmatically regardless of this setting.

## See Also

[`moveColumn(_:toColumn:)`](/documentation/AppKit/NSTableView/moveColumn(_:toColumn:))

Moves the column and heading at the specified index to the new specified index.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)