private DataTable GetDatatable(DataRow[] rows)
{
DataTable table1 = new DataTable();
table1.Columns.Add("Columna1");
foreach (DataRow row in rows)
{
DataRow newRow = table1.NewRow();
table1.Rows.Add(newRow);
newRow.ItemArray = row.ItemArray;
}
return table1;
}
No hay comentarios:
Publicar un comentario