---
title: reloadData()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstableview/reloaddata()
---

# reloadData()

Marks the table view as needing redisplay, so it will reload the data for visible cells and draw the new values.

## Declaration

```swift
func reloadData()
```

## Discussion

Discussion This method forces a redraw of all the visible cells in the table view. If you want to update the value in a single cell, column, or row, it is more efficient to use frameOfCell(atColumn:row:), rect(ofColumn:), or rect(ofRow:) in conjunction with the setNeedsDisplay(_:) method of NSView. If you just want to update the scroller, use noteNumberOfRowsChanged(); if the height of a set of rows changes, use noteHeightOfRows(withIndexesChanged:). note: For NSView-based table views, this method drops all the visible row views and cell views, and re-acquires them all.

## See Also

### Related Documentation

- [noteHeightOfRows(withIndexesChanged:)](appkit/nstableview/noteheightofrows(withindexeschanged:).md)
- [frameOfCell(atColumn:row:)](appkit/nstableview/frameofcell(atcolumn:row:).md)
- [noteNumberOfRowsChanged()](appkit/nstableview/notenumberofrowschanged().md)
- [rect(ofColumn:)](appkit/nstableview/rect(ofcolumn:).md)
- [rect(ofRow:)](appkit/nstableview/rect(ofrow:).md)

### Managing the Table’s Data

- [dataSource](appkit/nstableview/datasource.md)
- [usesStaticContents](appkit/nstableview/usesstaticcontents.md)
- [reloadData(forRowIndexes:columnIndexes:)](appkit/nstableview/reloaddata(forrowindexes:columnindexes:).md)
