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
prevent user to save worksheet
VBA to get a list of queries that use a specific table
SBS 2008 RWW Connect to Computer, will not authenticate
VB code doesn't work in ACCDE file
Cannot connect new Windows 7 client to the domain
Terminal Server 2000 - disabling and/or capturing disconnecting
In-place upgrade of Hyper-V Server 2k8 R2 to Full Server 2k8 w/Hyper-v role
popup modal form
EDB file growing like crazy HELP!!!!!
Apache .NET vs IIS 6.0\7.0