---
title: "reloadData(forRowIndexes:columnIndexes:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableview/reloaddata(forrowindexes:columnindexes:)"
---

# reloadData(forRowIndexes:columnIndexes:)

Reloads the data for only the specified rows and columns.

## Declaration

```swift
func reloadData(forRowIndexes rowIndexes: IndexSet, columnIndexes: IndexSet)
```

## Parameters

- `rowIndexes`: The indexes of the rows to update.
- `columnIndexes`: The indexes of the columns to update.

## Discussion

Discussion For cells that are visible, the appropriate dataSource and delegate methods are called and the cells are redrawn. For tables that support variable row heights, the row height is not re-queried from the delegate; it is your responsibility to invoke noteHeightOfRows(withIndexesChanged:) if a row height change is required. note: For NSView-based table views, this method drops the view-cells in the table row, but not the NSTableRowView instances.

## See Also

### Managing the Table’s Data

- [dataSource](appkit/nstableview/datasource.md)
- [usesStaticContents](appkit/nstableview/usesstaticcontents.md)
- [reloadData()](appkit/nstableview/reloaddata().md)
