title: Changing Font Size on DataGridView C#
body: <p>I've been attempting to change the font size of the text within a Data Grid upon choosing a text size from a value fetched from a database. So far I've only managed to change the text within the grid to either be bold or regular and be static size:</p>
  
  <pre><code>GridName.DefaultCellStyle.Font = new Font("Arial",15.00F,FontStyle.Bold);
  </code></pre>
  
  <p>The code above works, however, I want the "15.00F" to be variable, the value I want to pull it from is stored within a text string, I've tried to convert the font size(string) to a double but it's not letting me use it as the font size. How do I convert a string to a variable that I can replace the fixed font size above (if that makes sense).</p>
  
  <pre><code>GridName.DefaultCellStyle.Font = new Font("Arial",varFontSize,FontStyle.Bold);
  </code></pre>
  
  <p>Above is essentially what I'm after, I just don't know how to get a valid emSize in the varFontSize variable.</p>
  
  <p>Thank you in advance.</p>