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 use the icons in the Office2007IconsGallery
add/edit/delete from dataset, and bind a field in dataset to a combobox,
SQL : Validation Records Before Insert
Cannot upload more than 50 Mb in Sharepoint 2003 library
Need to make some space on server - can I remove PCHEALTH folder
users cannot open Tiff files in outlook in a Terminal server enviroment
VSTO Merge Module
HOW to map drives that STAY mapped after user logs off?
Approach for importing Excel spreadsheets into SQL tables using Access
Email Access Report using PDFCreator and Outlook