I have row collection. (DataRow[] rows) And i want to import all rows to another DataTable (DataTable dt)
BUT HOW !?
DataTable dt;
if (drs.Length>0)
{
dt = new DataTable();
foreach (DataRow row in drs)
{
dt.Columns.Add(row???????)
}
// if it possible, something like that => dt.Columns.AddRange(????????)
for(int i = 0; i < drs.Length; i++)
{
dt.ImportRow(drs[i]);
}
}
Do you have any idea ?