How to change black borders inside a DataGrid ? Data grid framework

If you change the properties DataGridCell:

 <Style TargetType="DataGridCell"> <Setter Property="BorderThickness" Value="0 0 0 5" /> <Setter Property="BorderBrush" Value="LightGray" /> </Style> 

It turns out something like this: enter image description here

In short, you just need to change the color to gray.

    1 answer 1

    Just set the VerticalGridLinesBrush and HorizontalGridLinesBrush properties:

     <DataGrid VerticalGridLinesBrush="LightGray" HorizontalGridLinesBrush="LightGray"> //--- </DataGrid>