Dim sample1 As List(Of Object()) = yourTable.AsEnumerable().Select(Function(r) r.ItemArray).ToList() Dim sample2 As List(Of List(Of String)) = yourTable.AsEnumerable().Select(Function(r) r.ItemArray.Select(AddressOf Convert.ToString).ToList()).ToList() Dim sample3() As List(Of Object) = yourTable.AsEnumerable().Select(Function(r) r.ItemArray.ToList()).ToArray()
Dim sample4 As Dictionary(Of String, List(Of Object)) = yourTable.Columns.Cast(Of DataColumn)().ToDictionary(Function(r) r.ColumnName, Function(r) New List(Of Object)()) For Each r As DataRow In yourTable.Rows For Each col In sample4.Keys sample4(col).Add(r(col)) Next Next