Is there an easy way to convert a Datatable to a multidimensional string array?
Maybe using LINQ?
LINQ
There\'s gotta be a better way than manually l
Linq is the answer. You can convert a DataTable to IEnumerable using the AsEnumerable method. Then, the ToArray() converts it to an array.
DataTable
AsEnumerable
ToArray()
var tableEnumerable = DataTableName.AsEnumerable(); tableArray = tableEnumerable.ToArray();