title: DataGridView skipping lines VB.net
body: <p>I'm displaying data from a .txt file into a datagridview which works fine but once I press the button to display another line of data the datagridview row cell is skipping 7 lines. I don't know if this problem can be resolved in the datagridview properties or in the code itself. I have tried each way but have been unsuccessful in finding a solution</p>
  
  <pre><code> Private Sub btn1_Click(sender As Object, e As EventArgs) Handles btn1.Click
      Dim rowvalue As String
      Dim cellvalue(0) As String
  
      Dim streamReader As IO.StreamReader = NewIO.StreamReader("button1.txt")
      'Reading CSV file content 
      While streamReader.Peek() &lt;&gt; -1
          rowvalue = streamReader.ReadLine()
          cellvalue = rowvalue.Split(","c) 'Separating
          DataGridView1.Rows.Add(cellvalue)
      End While
  
  End Sub
  </code></pre>