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
How to open pdf in a new browser without save option
Lookup Values with Substring Match instead of Exact Match
Check if there is a specific message for an event in the message queue in VB.NET
Repeat Header Rows on Each Page of the Report
Access VB for combo box
is there a way to set the defaults of a pivot table?
using cast and case...
MS Access add image to form at runtime
How to edit a column in a list box control and update back to the Table in Access.
How can I retrieve the HTML source from a web page at a certain URL?