Removing a dashed line DataGrid frame?

enter image description here

I want to remove the dotted border around Romance, which can be seen in the above datagridcell. A border appears whenever I use the right navigation keys. How can I get rid of it?

+4
source share
1 answer

You need to clear FocusVisualStyle from DataGridCells.

 <DataGrid> <DataGrid.CellStyle> <Style TargetType="{x:Type DataGridCell}"> <Setter Property="FocusVisualStyle" Value="{x:Null}"/> </Style> </DataGrid.CellStyle> ... 
+3
source

Source: https://habr.com/ru/post/1382947/


All Articles