The following code is working fine for me:
DataRow[] drTasks = TaskList.Select(criteria, "TaskID ASC");
if (drTasks.Length > 0)
{
DataTable dataTable = drTasks.CopyToDataTable<DataRow>();
stdHrsInfo.Merge(dataTable);
}
However, it occurs to me that there may be a way with LINQ to direct Merge (or Import?) the DataRow Array into the DataTable. If so, what would the code look like?
Robert
...
Go to the complete details ...