Why does the code below result in 3 rows in my datagrid when there is only 2 rows in my CSV file? I end up with 2 populated rows and one empty row. The CSV file only contains 2 lines. I suspect the logic of the code below.
Do While Read()
row = New DataGridViewRow()
For Index = 0 To FieldCount - 1
cell = New DataGridViewTextBoxCell()
cell.Value = GetString(Index).ToString()
row.Cells.Add(cell)
Next
DataView.Rows.Add(row)
Loop
Thanks