I noticed something in my code, change this line:
To this:Code:dt.Columns.AddRange((From column As String In lines.First.Split(";"c) Select New DataColumn(column)).ToArray())
The adjustment will name the columns: Column1, Column2, etc. rather than naming them the respective values in the first row.Code:dt.Columns.AddRange((From columnIndex As Integer In Enumerable.Range(1, lines.First.Split(";"c).Count) Select New DataColumn("Column" & columnIndex.ToString())).ToArray())




Reply With Quote
