title: Gridview Templatefield to PDF using iTextSharp
body: <p>I have a gridview which I'm converting to a PDF with iTextSharp. I've been following along with the method in this <a href="https://stackoverflow.com/a/10463624/1467598">post</a>.</p>
  
  <p>Since I'm using VB.net I've changed all the C# code over but I've been having problems with one line.</p>
  
  <pre><code>if (gvReport.Columns[columnNo] is TemplateField)
  </code></pre>
  
  <p>I don't know how to write this line in VB.net and as I have a few templatefields in my gridview (for formatting) they show up as blank in the PDF. </p>
  
  <p>If anyone has any ideas it would be greatly appreciated.</p>