<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableViewDelegate/tableView(_:isGroupRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTableViewDelegate(im)tableView:isGroupRow:"
  },
  "title" : "tableView(_:isGroupRow:)"
}
-->

# tableView(_:isGroupRow:)

Returns whether the specified row is a group row.

```
@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

<doc://com.apple.documentation/documentation/Swift/true> if the specified row should have the group row style drawn, <doc://com.apple.documentation/documentation/Swift/false> otherwise.

## Discussion

If the cell in `row` is an [`NSTextFieldCell`](/documentation/AppKit/NSTextFieldCell) object and contains only a string, the group row style attributes are automatically applied to the cell.

Group rows in [`NSView`](/documentation/AppKit/NSView)-based table views can be made to visually “float” by setting the table view method [`floatsGroupRows`](/documentation/AppKit/NSTableView/floatsGroupRows) to <doc://com.apple.documentation/documentation/Swift/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

[`floatsGroupRows`](/documentation/AppKit/NSTableView/floatsGroupRows)

A Boolean value indicating whether the table view draws grouped rows as if they are floating.



---

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)