Skip to content

Freeze leading columns in the data grid #3620

Closed

Description

@datlechin

Problem

On a table wider than the window, scrolling right takes the identifying columns off screen. Only the row-number gutter stays put: features/data-grid.mdx (Copying) says it "stays at the left edge on a table wider than the window", and apple/TablePro/Views/Results/DataGridRowGutterView.swift:8 holds it there with NSScrollView.addFloatingSubview(_:for:). No data column can be held the same way, so on a 60-column table the id or email that tells one row from the next is gone by the time you reach the column you are checking.

The header menu (apple/TablePro/Views/Results/Extensions/DataGridView+Sort.swift:216) offers Hide Column, Size to Fit and Select Column, and the columns popover remembers widths, order and hidden columns per table, but nothing freezes a column.

Proposed solution

  • Freeze Up to This Column and Unfreeze Columns on the header menu. Frozen columns are the leading ones, from the first data column through the one chosen.
  • Frozen columns stay beside the row-number gutter while the rest scroll under them, with a divider at their trailing edge.
  • Selection, copy, cell editing, the cell cursor, Jump to Column and VoiceOver treat a frozen column like any other.
  • Remembered per table with widths, order and hidden columns, and cleared by Reset Columns.
  • Keep the drawn-cell grid's cost: frozen cells are drawn the way the gutter is, not mounted as views per row.

Done means the chosen leading columns stay in view at every horizontal scroll offset on a table and on a query result.

Alternatives considered

Drag the identifying column next to the one being read, or hide the columns in between.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions