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

# sectionIdentifier(forRow:)

Returns the identifier of the section containing the specified row in the snapshot.

```
func sectionIdentifier(forRow row: Int) -> SectionIdentifierType?
```

## Parameters

`row`

The row of the section in the table view.

## Return Value

The section’s identifier, 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)