title: How to set grid lines in a one pixel width (WPF DataGrid)?
body: <p>I am using the WPF datagrid to display some data and I want to grid lines thickness was equal to one pixel, but each cell displays unwanted border. How to get rid of it and set thickness of all lines to one pixel (like in DataGridView in WinForms)?</p>
  
  <pre><code>XAML:
  &lt;DataGrid HeadersVisibility="Column" SelectionUnit="Cell"&gt;
     &lt;DataGrid.Columns&gt;
        &lt;DataGridTextColumn Header="ID" Binding="{Binding ID}"/&gt;                                    
        &lt;DataGridTextColumn Header="Description" Binding="{Binding Description}"/&gt;
     &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>Result:
  <a href="https://i.stack.imgur.com/vbTaX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vbTaX.jpg" alt="unwanted borders"></a></p>