<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><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>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Sun, 20 Jul 2008 06:41:05 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>Bind 2 or More Windows Controls To One Datasource 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/346/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/346/comments/</comments>
		<pubDate>Tue, 05 Sep 2006 20:27:21 +0000</pubDate>
		<dc:creator>MovingParts</dc:creator>
		<category>Bind, Control, controls, datasource, same, two</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/346/</guid>
		<description>
			<![CDATA[
				<p>so you executed a query that took .5 second to execute and you want to bind that to a windows control. next you decide that you will need to have two controls bound to the same datasource. not a problem, except when you do this:<br />control1.datasource = datatable<br />control2.datasource = datatable<br /><br />you notice that each control mirrors the other and you cannot pick two seperate and distinct values.<br /><br />one way to solve this is to create two datatables and execute the query twice. unfortunately this now doubles your query time. bad idea.<br /><br />here is the elegant solution...</p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>