Microsoft
Software
Hardware
Network
Question : Populate a DataTable from another DataTable
I have a DataTable (dt) populated from a CrossTab query so I can not do this in SQL.
I need to change the DataType and ColumnName for certain columns.
I made a DataTable.Clone() (dtClone) of dt This of course is a empty table so I can can change the DataType and ColumnNames
Now how do I poulate dtClone from dt?
I could also populate dtClone from the original datasource if neccessary.
Thanks forthe help,
RAlph
Answer : Populate a DataTable from another DataTable
This "should" work!!
foreach (DataRow dr in dt.Rows)
{
CloneDT.ImportRow(dr);
}
But cloneDT is empty!!
I tried using a new empty DataTable but that got the same results no records returned.
Random Solutions
Set Identity to a column without autoincrement
Registry Issue - Userinit string value missing in the registry - windows server 2003 server
Out look archive error
Obtaining the DataGridTemplateColumn to set items source in code behind
How do you remove the .ink virus
Enter Parameter Value after changing a form to subform
Number of folders
ISA event 14148
smartheap error
Access macro vs modules