Posted 27 November 2019, 5:44 am EST
Hi,
We are using WPF DataGrid Version 3. We need to add AutomationId in each datagrid cell. Below Code is used to add AutomationId in SetCellStyle at DataGridCellPresenter
var random = string.Concat(cell.Row.Index, cell.Column.Index);
cell.SetValue(UidProperty, "cell" + random.ToString())
```;
But This AutomationId is not detected in Inspect.exe.
DataGrid does not exposes TextBlock Automation properties .
[b]How to Set AutomationId at cell level and get it detected using Automation tool.[/b]