title: How can I center the heading in a column on a DataGridView?
body: <p>I have a strange problem and it's probably a simple fix, but after much research, I cannot seem to find a solution.</p>
  
  <p>I have a <code>DataGridView</code> on which I'm trying to center the column headings, but the result is a left bias in the centering—almost like an indenting problem.  I've seen a few posts on this issue on a site or two, but never a solution.  Any thoughts? </p>
  
  <p>Here's the statement I'm currently trying to use:</p>
  
  <pre><code>DataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
  </code></pre>