<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableViewDiffableDataSourceReference/row(forSectionIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableViewDiffableDataSource(im)rowForSectionIdentifier:"
  },
  "title" : "row(forSectionIdentifier:)"
}
-->

# row(forSectionIdentifier:)

Returns a row for the section with the specified identifier in the table view.

```
func row(forSectionIdentifier identifier: SectionIdentifierType) -> Int
```

## Parameters

`identifier`

The identifier of the section in the table view.

## Return Value

The item’s section, or `nil` if the method doesn’t find an item with the provided item identifier.

---

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)