<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/GridLineStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTableViewGridLineStyle"
  },
  "title" : "NSTableView.GridLineStyle"
}
-->

# NSTableView.GridLineStyle

`NSTableView` defines these constants to specify grid styles. These constants are used by the [`gridStyleMask`](/documentation/AppKit/NSTableView/gridStyleMask) property. The mask can be either [`NSTableViewGridNone`](/documentation/AppKit/NSTableViewGridLineStyle/NSTableViewGridNone) or it can contain either or both of the other options combined using the C bitwise `OR` operator.

```
struct GridLineStyle
```

## Topics

### Constants

[`NSTableViewGridNone`](/documentation/AppKit/NSTableViewGridLineStyle/NSTableViewGridNone)

Specifies that no grid lines should be displayed.

[`static var solidVerticalGridLineMask: NSTableView.GridLineStyle`](/documentation/AppKit/NSTableView/GridLineStyle/solidVerticalGridLineMask)

Specifies that vertical grid lines should be displayed.

[`static var solidHorizontalGridLineMask: NSTableView.GridLineStyle`](/documentation/AppKit/NSTableView/GridLineStyle/solidHorizontalGridLineMask)

Specifies that horizontal grid lines should be displayed.

[`static var dashedHorizontalGridLineMask: NSTableView.GridLineStyle`](/documentation/AppKit/NSTableView/GridLineStyle/dashedHorizontalGridLineMask)

Specifies that the horizontal grid lines should be drawn dashed.

### Initializers

[`init(rawValue: UInt)`](/documentation/AppKit/NSTableView/GridLineStyle/init(rawValue:))

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)