---
title: "tableView(_:isGroupRow:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdelegate/tableview(_:isgrouprow:)"
---

# tableView(_:isGroupRow:)

Returns whether the specified row is a group row.

## Declaration

```swift
@MainActor optional func tableView(_ tableView: NSTableView, isGroupRow row: Int) -> Bool
```

## Parameters

- `tableView`: The table view that sent the message.
- `row`: The row index.

## Return Value

Return Value true if the specified row should have the group row style drawn, false otherwise.

## Discussion

Discussion If the cell in row is an NSTextFieldCell object and contains only a string, the group row style attributes are automatically applied to the cell. Group rows in NSView-based table views can be made to visually “float” by setting the table view method floatsGroupRows to true. note: When configured as a source list style table view, rows identified as group rows draw with a specific style unique to source lists.

## See Also

### Related Documentation

- [floatsGroupRows](appkit/nstableview/floatsgrouprows.md)
