Removing all DataGrid row and cell borders

Solution 1:

What about setting GridLinesVisibility="None"?

<DataGrid GridLinesVisibility="None">
    ...
<DataGrid>

Solution 2:

You could also do it this way

 dataGrid.GridLinesVisibility = DataGridGridLinesVisibility.None;