---
title: "moveRow(at:to:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsgridview/moverow(at:to:)"
---

# moveRow(at:to:)

Moves the specified row to the new row location.

## Declaration

```swift
func moveRow(at fromIndex: Int, to toIndex: Int)
```

## See Also

### Adding, Removing, and Moving Rows

- [addRow(with:)](appkit/nsgridview/addrow(with:).md)
- [insertRow(at:with:)](appkit/nsgridview/insertrow(at:with:).md)
- [removeRow(at:)](appkit/nsgridview/removerow(at:).md)
