<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableViewDiffableDataSourceReference/sectionHeaderViewProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableViewDiffableDataSource(py)sectionHeaderViewProvider"
  },
  "title" : "sectionHeaderViewProvider"
}
-->

# sectionHeaderViewProvider

The closure that configures and returns the table view’s section header views from the diffable data source.

```
var sectionHeaderViewProvider: NSTableViewDiffableDataSourceReferenceSectionHeaderViewProvider? { get set }
```

## Discussion

This property replaces the [`tableView(_:viewFor:row:)`](/documentation/AppKit/NSTableViewDelegate/tableView(_:viewFor:row:)) method for group rows when the `tableColumn` parameter in [`tableView(_:viewFor:row:)`](/documentation/AppKit/NSTableViewDelegate/tableView(_:viewFor:row:)) would be `nil`. Setting this property means the table view never invokes its delegate’s [`tableView(_:isGroupRow:)`](/documentation/AppKit/NSTableViewDelegate/tableView(_:isGroupRow:)) method. Instead, it uses the current snapshot’s sections.

---

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)