title: vb.net print datagridview column alignment
body: <p>My grid displays with the first 3 columns left aligned and the next 4 right aligned.</p>
  
  <p>Using this code <code>e.Graphics.DrawString(Stock.gdColours(j, i).Value, f, Brushes.Black, x, y + 4)</code></p>
  
  <p>all columns print left aligned. 
  Because I need columns 3 onward to be right aligned I added: </p>
  
  <pre><code>If j &gt;2 Then 
      sf.Alignment = StringAlignment.Far 
  Else 
      sf.Alignment = StringAlignment.Near
  
  e.Graphics.DrawString(Stock.gdColours(j, i).Value, f, Brushes.Black, x, y + 4, sf)
  </code></pre>
  
  <p>But the result is that the alignment is correct but Colums 3 onward have all appeared from Column 2 onward.</p>
  
  <p>Help would be appreciated.</p>