Dim s As New StringBuilder Dim str As String For Each dr As DataRow In dt.Rows For i As Integer = 0 To dt.Columns.Count - 1 For Each col As DataColumn In dt.Columns str = dr.Item(col.ColumnName).ToString() + "|" s.Append(str) Next Next Next
s
i
string.Split("|")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)