You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add UIA support for tables with selectable rows #29
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.
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.
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!
Activity
charlesjhlee commentedon Oct 28, 2026
A patch for this is in https://gist.github.com/charlesjhlee/7c608375a2df156c88d33b92d655e055 (
accesskit_windows.patch, on the consumer helpers from #10):IGridProvider(logicalRowCount/ColumnCount;GetItemreturnsE_INVALIDARGoutside the grid and no element for a cell not in the tree),ITableProvider(headers, row major),IGridItemProviderandITableItemProvideron cells,HeadingLevel, header rows asHeaderand header cells asHeaderItem, andGetSelectionreturning the selected cells. Custom actions: UIA has no pattern for app-defined actions, so each one is a child Button with Invoke that sendsAction::CustomAction. A UIA client reading a 10,000,000-row grid on Windows 11 getsRowCount10,000,000 and, after a jump,GridItem.Row4,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.Futyn-Maker commentedon Nov 18, 2026
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!