Removing all DataGrid row and cell borders
You could also do it this way
dataGrid.GridLinesVisibility = DataGridGridLinesVisibility.None;
What about setting GridLinesVisibility="None"
?
<DataGrid GridLinesVisibility="None">
...
<DataGrid>