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

# usesAlternatingRowBackgroundColors

A Boolean value indicating whether the table view uses alternating row colors for its background.

```
var usesAlternatingRowBackgroundColors: Bool { get set }
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the table view uses standard alternating row colors for the background, <doc://com.apple.documentation/documentation/Swift/false> if it uses a solid color.

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the table uses the standard alternating row colors for the background. When the value is <doc://com.apple.documentation/documentation/Swift/false>, the table view uses a single solid color for the background.

---

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)