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

# moveColumn(at:to:)

Moves the specified column to a new column location.

## Declaration

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

## See Also

### Adding, Removing, and Moving Columns

- [addColumn(with:)](appkit/nsgridview/addcolumn(with:).md)
- [insertColumn(at:with:)](appkit/nsgridview/insertcolumn(at:with:).md)
- [removeColumn(at:)](appkit/nsgridview/removecolumn(at:).md)
