c# - Simple way to convert datarow array to datatable -
I want to convert a DataRow
array to DataTable
. .. What is the easiest way to do this? Why not repeat through your datacraw array and add (using DataRow if necessary. So to get a copy of data RAW), something like this:
foreach (dataaround line in rowArray) {dataTable.ImportRow (line); }
Ensure that the same schema for your datatable is in the form of a detour in your datawar array.
Comments
Post a Comment