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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -