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

# NSGridRow

A row within a grid view.

```
@MainActor class NSGridRow
```

## Topics

### Getting the Row Details

[`numberOfCells`](/documentation/AppKit/NSGridRow/numberOfCells)

[`hidden`](/documentation/AppKit/NSGridRow/isHidden)

### Formatting the Row

[`topPadding`](/documentation/AppKit/NSGridRow/topPadding)

[`bottomPadding`](/documentation/AppKit/NSGridRow/bottomPadding)

[`height`](/documentation/AppKit/NSGridRow/height)

[`rowAlignment`](/documentation/AppKit/NSGridRow/rowAlignment)

[`yPlacement`](/documentation/AppKit/NSGridRow/yPlacement)

[`Alignment`](/documentation/AppKit/NSGridRow/Alignment)

### Getting the Grid View

[`gridView`](/documentation/AppKit/NSGridRow/gridView)

### Getting Cells

[`-  cellAtIndex:`](/documentation/AppKit/NSGridRow/cell(at:))

### Merging Cells in the Row

[`-  mergeCellsInRange:`](/documentation/AppKit/NSGridRow/mergeCells(in:))

## Relationships

### Conforms To

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)