---
title: "row(forSectionIdentifier:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdiffabledatasourcereference/row(forsectionidentifier:)"
---

# row(forSectionIdentifier:)

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

## Declaration

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

## Parameters

- `identifier`: The identifier of the section in the table view.

## Return Value

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

## See Also

### Identifying Items and Sections

- [itemIdentifier(forRow:)](appkit/nstableviewdiffabledatasourcereference/itemidentifier(forrow:).md)
- [row(forItemIdentifier:)](appkit/nstableviewdiffabledatasourcereference/row(foritemidentifier:).md)
- [sectionIdentifier(forRow:)](appkit/nstableviewdiffabledatasourcereference/sectionidentifier(forrow:).md)
