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

# row(forItemIdentifier:)

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

```
func row(forItemIdentifier identifier: ItemIdentifierType) -> Int
```

## Parameters

`identifier`

The identifier of the item in the table view.

## Return Value

The item’s row, 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)