title: show percentage by specifying DefaultCellStyle.Format value in datagridviewcolum
body: <pre><code>With datagridview.Columns("PricePerUnit")
      .ValueType = Type.GetType("System.Decimal")
      .DefaultCellStyle.Format = "C"
  End With
  </code></pre>
  
  <p>A datatable is bound to the datagridview and 
  in the above code a If I just add row with a value five to the column "PricePerUnit" 
  it will be shown as $5.00 in the datagridview column</p>
  
  <p>Similarly I want to show up something like If I just add row with a value five to the column "DiscountPercentage" </p>
  
  <p>it should show as 5.00% </p>
  
  <p>I need a string value to assign to DefaultCellStyle.Format to achieve this.</p>
  
  <p>If I use <code>DefaultCellStyle.Format="P"</code> it automatically multiplies that to 100 and so 
  for a input of 5 it shows as 500.00% instead of 5.00%</p>
  
  <p>Any ideas?</p>
  
  <hr>
  
  <p>Resolved </p>
  
  <p>dtb Helped me do this  (thanks to him)</p>
  
  <p><code>number.ToString("0.00\%")</code> gets the decimal number along with 2 decimal integers</p>