<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: DataTable.ImportRow method confusion - DUH!</title>
	<link>http://kwsanders.com/2004/11/20/datatableimportrow-method-confusion-duh/</link>
	<description>My blog about all things family, photography, geocaching, and programming.</description>
	<pubDate>Tue, 06 Jan 2009 12:46:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Andy</title>
		<link>http://kwsanders.com/2004/11/20/datatableimportrow-method-confusion-duh/#comment-462</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 21 Feb 2008 13:24:54 +0000</pubDate>
		<guid>http://kwsanders.com/2004/11/20/datatableimportrow-method-confusion-duh/#comment-462</guid>
		<description>Yes I had the same issue and used the Clone method to resolve it.

I used a datatable.select to populate a datarow array from datatable A then wanted to populate datatable B with the array.

I had to do :
dtA = dtB.Clone

before I could then do :
drArray = dtB.Select(blah)
For Each dr As DataRow In drArray
	dtA.ImportRow(dr)
Next</description>
		<content:encoded><![CDATA[<p>Yes I had the same issue and used the Clone method to resolve it.</p>
<p>I used a datatable.select to populate a datarow array from datatable A then wanted to populate datatable B with the array.</p>
<p>I had to do :<br />
dtA = dtB.Clone</p>
<p>before I could then do :<br />
drArray = dtB.Select(blah)<br />
For Each dr As DataRow In drArray<br />
	dtA.ImportRow(dr)<br />
Next</p>
]]></content:encoded>
	</item>
</channel>
</rss>
