|#391146 Author: D.Jeya kumar(JK) Member Level: Gold Member Rank: 12 Date: 18/Jun/2009 Rating: Points: 2|
Do you want to copy a row from one table to another table?
Thanks & Regards
|#391151 Author: Viji RAJKUMAR Member Level: Gold Member Rank: 116 Date: 18/Jun/2009 Rating: Points: 2|
Use ImportRow to import rows from another table
** You can use DataTable.Load method to load data from a IDataReader
object, which can be created through DataTable.CreateDataReader
Also when load data into datatable, you should call BeginLoadData,
EndLoadData so as to turn off event notification(improve performance
Pls rate my Answer if it was supportive
|#391165 Author: Aarati Member Level: Gold Member Rank: 970 Date: 18/Jun/2009 Rating: Points: 2|
Thanks for yur reply. but . in this way the row is imported form the datatable . while there is no datarow in the original datatable how can i solve the problem .
i need to copy datatable with same data and structure but when i make change in copy there is change in original datatable. how can i copy datatble in the way thet oriiginal and copy doesnot get affected by the changes in other.
|#391250 Author: Raaz Member Level: Silver Member Rank: 2529 Date: 18/Jun/2009 Rating: Points: 2|
DataTable dtNew = new DataTable();
if u make any chnages in dtNew table, it will not effect to the dtOrginal.