title: How to set DataGridTextColumn vertically center (WPF)?
body: <p>I would like to numerate my rows in <code>DataGrid</code>, for this I am using such approach</p>
  
  <p><a href="https://stackoverflow.com/a/15061668/5709159">https://stackoverflow.com/a/15061668/5709159</a></p>
  
  <p>works nice, but number in cell not adjust center horizontally nor vertically. </p>
  
  <p>Then I found such solution </p>
  
  <p><a href="https://stackoverflow.com/a/2729428/5709159">https://stackoverflow.com/a/2729428/5709159</a></p>
  
  <p>But this just center a number horizontally, but not vertically.</p>
  
  <p>For vertical center I found such approach </p>
  
  <p><a href="https://stackoverflow.com/a/720824/5709159">https://stackoverflow.com/a/720824/5709159</a></p>
  
  <p>but as wrote in comments </p>
  
  <blockquote>
    <p>The text was centered, but the cell width no longer matched up with its header</p>
  </blockquote>
  
  <p>So, I get something like this</p>
  
  <p><a href="https://i.stack.imgur.com/jlhwN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jlhwN.png" alt="enter image description here"></a></p>
  
  <p>Do you see that there is double bottom line? </p>
  
  <p>So, question is - how to center a number horizontally as well as vertically?</p>