---
title: allowsEmptySelection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstableview/allowsemptyselection
---

# allowsEmptySelection

A Boolean value indicating whether the table view allows the user to select zero columns or rows.

## Declaration

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

## Discussion

Discussion The default is true, which allows the user to select zero columns or rows.

## See Also

### Related Documentation

- [deselectRow(_:)](appkit/nstableview/deselectrow(_:).md)
- [deselectColumn(_:)](appkit/nstableview/deselectcolumn(_:).md)
- [deselectAll(_:)](appkit/nstableview/deselectall(_:).md)

### Configuring Behavior

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