Skip to content

Add UIA support for tables with selectable rows #29

Open

Description

@mwcampbell

These tables are sometimes called list views. An example is the message list in Outlook. For these, we'll need the selection and selection item patterns as with list boxes, but also the grid, grid item, table, and table item patterns.

Activity

  1. charlesjhlee commented on Oct 28, 2026

    @charlesjhlee

    A patch for this is in https://gist.github.com/charlesjhlee/7c608375a2df156c88d33b92d655e055 (accesskit_windows.patch, on the consumer helpers from #10): IGridProvider (logical RowCount/ColumnCount; GetItem returns E_INVALIDARG outside the grid and no element for a cell not in the tree), ITableProvider (headers, row major), IGridItemProvider and ITableItemProvider on cells, HeadingLevel, header rows as Header and header cells as HeaderItem, and GetSelection returning the selected cells. Custom actions: UIA has no pattern for app-defined actions, so each one is a child Button with Invoke that sends Action::CustomAction. A UIA client reading a 10,000,000-row grid on Windows 11 gets RowCount 10,000,000 and, after a jump, GridItem.Row 4,000,000 with its column header; Narrator says "Row 4000001 of 10000000 Column 1 of 6" with the column header. Four new tests use a real window and the UIA client.

  2. Futyn-Maker commented on Nov 18, 2026

    @Futyn-Maker

    A use case beyond list views: a spreadsheet's cell grid and a word processor's tables, in apps built with egui and AccessKit (storytold/gridcraft#2758). Without GridItem and TableItem, Windows screen readers can't get a cell's row and column, so NVDA can't report them and its table commands have nothing to work with. The patch posted above covers what we'd need; I can test a build with NVDA if that helps. Please include this!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions