title: Doubles will not output in DataGridView
body: <p>I have a DataGridView that I want to fill with values that are Doubles. The DataGridView filled fine when the values were strings, but now it outputs <code>System.Double[]</code> in the first column and nothing in any other column. I know the conversion is working because I can print the double values to the console. How do I format all columns programmatically? (I don't want to use the designer)</p>
  
  <p>My code:</p>
  
  <pre><code>Dim cols() as String = {"col1", "col2", "col3"} ' this goes on for 33 cols
  Dim currentRow As String()
  Dim row() As Double
  Dim c As Integer
  
  DataGridView1.Rows.Clear()
  DataGridView1.ReadOnly = True
  DataGridView1.DefaultCellStyle.Format = "G"
  DataGridView1.ColumnCount = 33
  
  For c = 0 To (cols.Length - 1)
       DataGridView1.Columns(c).Name = cols(c)
  Next
  While Not at EndOfFile ' This line and the next are semi-pseudocode, but it's the same idea
      read/parse line into currentRow
      Dim x As Integer
      For x = 0 To (currentRow.Length - 1)
          ReDim Preserve row(x)
          Double.TryParse(currentRow(x), row(x))
      Next
  
      With Me.DataGridView1.Rows
          .Add(row)
      End With
  </code></pre>
  
  <p>Screenshot of the output:</p>
  
  <p><a href="https://i.stack.imgur.com/35b0Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/35b0Y.png" alt="Screenshot of the output"></a></p>