---
title: "selectedRow(inColumn:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/selectedrow(incolumn:)"
---

# selectedRow(inColumn:)

Returns the row index of the selected cell in the specified column.

## Declaration

```swift
func selectedRow(inColumn column: Int) -> Int
```

## Parameters

- `column`: The column index specifying the column for which to return the selected row.

## Return Value

Return Value The row index of the selected cell in the specified column. Returns -1 if there is no selection.

## See Also

### Related Documentation

- [loadedCell(atRow:column:)](appkit/nsbrowser/loadedcell(atrow:column:).md)

### Managing Selection

- [selectedCell(inColumn:)](appkit/nsbrowser/selectedcell(incolumn:).md)
- [selectedCells](appkit/nsbrowser/selectedcells.md)
- [selectAll(_:)](appkit/nsbrowser/selectall(_:).md)
- [selectRow(_:inColumn:)](appkit/nsbrowser/selectrow(_:incolumn:).md)
- [selectionIndexPath](appkit/nsbrowser/selectionindexpath.md)
- [selectionIndexPaths](appkit/nsbrowser/selectionindexpaths.md)
