Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing DataGrid cell dotted border?

enter image description here

I want to remove the dotted border around Romance that can be seen in the above datagridcell. The border appears whenever i use the key board left-right navigation keys. How can i get rid of it ?

like image 794
Lucifer Avatar asked Nov 24 '11 18:11

Lucifer


1 Answers

You have to clear out the FocusVisualStyle of the DataGridCells.

<DataGrid>
    <DataGrid.CellStyle>
        <Style TargetType="{x:Type DataGridCell}">
            <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        </Style>
    </DataGrid.CellStyle>
...
like image 171
kevev22 Avatar answered Nov 19 '22 00:11

kevev22