title: How to set custom DataGridView Borders in C# winforms
body: <p>I am stuck in this if any body can help i want to print the datagridview header row with a single dashed line below only like:</p>
  
  <pre><code>Name              ID
  ---------------------
  </code></pre>
  
  <p>And print the items without anyborders like this</p>
  
  <pre><code>Name              ID
  ---------------------
  Abc               21
  </code></pre>
  
  <p>I used this code</p>
  
  <pre><code>dgvmain.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
  dgvmain.CellBorderStyle = DataGridViewCellBorderStyle.None;
  </code></pre>
  
  <p>Where <code>dgvmain</code> is the name of my <code>DataGridView</code>
  Any help thanks in advance.</p>