<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/reloadData(forRowIndexes:columnIndexes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)reloadDataForRowIndexes:columnIndexes:"
  },
  "title" : "reloadData(forRowIndexes:columnIndexes:)"
}
-->

# reloadData(forRowIndexes:columnIndexes:)

Reloads the data for only the specified rows and columns.

```
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

For cells that are visible, the appropriate [`dataSource`](/documentation/AppKit/NSTableView/dataSource) and [`delegate`](/documentation/AppKit/NSTableView/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:)`](/documentation/AppKit/NSTableView/noteHeightOfRows(withIndexesChanged:)) if a row height change is required.

> Note:
> For ``doc://com.apple.appkit/documentation/AppKit/NSView``-based table views, this method drops the view-cells in the table row, but not the ``doc://com.apple.appkit/documentation/AppKit/NSTableRowView`` instances.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)