---
title: allowsColumnSelection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstableview/allowscolumnselection
---

# allowsColumnSelection

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

## Declaration

```swift
var allowsColumnSelection: Bool { get set }
```

## Discussion

Discussion The default is false, which prevents the user from selecting columns (if you create the table view in Interface Builder, the default value is true). You can select columns programmatically regardless of this setting.

## See Also

### Configuring Behavior

- [allowsColumnReordering](appkit/nstableview/allowscolumnreordering.md)
- [allowsColumnResizing](appkit/nstableview/allowscolumnresizing.md)
- [allowsMultipleSelection](appkit/nstableview/allowsmultipleselection.md)
- [allowsEmptySelection](appkit/nstableview/allowsemptyselection.md)
- [usesAutomaticRowHeights](appkit/nstableview/usesautomaticrowheights.md)
