I\'m trying to figure out how to make the rows in the following WPF DataGrid non-focusable. As you can see I tried adding a
section t
Use IsHitTestVisible = False
<DataGrid.Resources>
<Style x:Key="NoFocusColumStyle" TargetType="{x:Type DataGridCell}">
<Setter Property="IsHitTestVisible" Value="False"/>
</Style>
</DataGrid.Resources>
Then apply the style to whatever columns you want to restrict focus for
<DataGridTextColumn CellStyle="{StaticResource NoFocusColumStyle}" ... />