Skip to main content

Set Table Cell Value By Headers

Sets the value of a grid / table cell at the intersection of the given row-header and column-header text (Windows only). Uses the UIA TablePattern to resolve indices, then ValuePattern to write. Resilient to row/column reordering compared to index-based lookup. Some grids require the cell to be in edit mode first — click or double-click it before setting the value.

Category: Desktop Application Automation · Group: Desktop · Activity name: SetTableCellValueByHeaders

The SetTableCellValueByHeaders activity in the designer

Example

SetTableCellValueByHeaders("<xPath>", "<tableRowHeader>", tableColumnHeader="<tableColumnHeader>", valueToSet="<valueToSet>", checkOrphanedElements=False)

Inputs

NameTypeRequiredDefaultDescription
XPathstringYesXPath expression that identifies the grid / table element.
Row headerstringYesVisible text of the row header to look up.
Column headerstringYesVisible text of the column header to look up.
ValuestringYesThe value to write into the cell.
Check orphaned elementsbooleanFalseWhen the element is not found by its XPath, scan the parent window's area for elements detached from the UI Automation tree. Slower; enable only for windows known to orphan their elements.