---
title: numberOfColumns
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstablerowview/numberofcolumns
---

# numberOfColumns

Returns the number of columns represented by views in the table row view.

## Declaration

```swift
var numberOfColumns: Int { get }
```

## Discussion

Discussion The number of columns may not be equal to the number of columns in the enclosing NSTableView, if this row view is a group style and has a single view that spans the entire width of the row.

## See Also

### Row Grouping

- [isGroupRowStyle](appkit/nstablerowview/isgrouprowstyle.md)
