<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting a DataGrid control&#8217;s data provider to an XML object in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Mon, 13 Feb 2012 01:38:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Boaz</title>
		<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/comment-page-1/#comment-3991</link>
		<dc:creator>Boaz</dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/#comment-3991</guid>
		<description>thanks for the suggestion on using children(). And yeah, it does kill the idea for having to set the column headers manually anyway.</description>
		<content:encoded><![CDATA[<p>thanks for the suggestion on using children(). And yeah, it does kill the idea for having to set the column headers manually anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikos</title>
		<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/comment-page-1/#comment-3994</link>
		<dc:creator>nikos</dc:creator>
		<pubDate>Wed, 12 Nov 2008 12:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/#comment-3994</guid>
		<description>thank you!!!</description>
		<content:encoded><![CDATA[<p>thank you!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/comment-page-1/#comment-3993</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Fri, 07 Nov 2008 09:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/#comment-3993</guid>
		<description>Kirk,

Sure, just use databinding (bind the form fields to a field in the DataGrid control&#039;s &lt;code&gt;selectedItem&lt;/code&gt; object) and select a random index in the DataGrid by setting the &lt;code&gt;selectedIndex&lt;/code&gt; property to a value between 0 and the data provider length - 1.

Peter</description>
		<content:encoded><![CDATA[<p>Kirk,</p>
<p>Sure, just use databinding (bind the form fields to a field in the DataGrid control&#8217;s <code>selectedItem</code> object) and select a random index in the DataGrid by setting the <code>selectedIndex</code> property to a value between 0 and the data provider length &#8211; 1.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/comment-page-1/#comment-3992</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Fri, 07 Nov 2008 06:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/#comment-3992</guid>
		<description>After a datagrid is populated with data via an HTTP service, is there a way to send the data from a randomly selected row to several text box fields elsewhere on the form?

Right now my application sends the data fine with an itemclick event, but I would to have the user see some good example data when the application loads.</description>
		<content:encoded><![CDATA[<p>After a datagrid is populated with data via an HTTP service, is there a way to send the data from a randomly selected row to several text box fields elsewhere on the form?</p>
<p>Right now my application sends the data fine with an itemclick event, but I would to have the user see some good example data when the application loads.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/comment-page-1/#comment-3989</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 06 Nov 2008 19:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/#comment-3989</guid>
		<description>Boaz,

This seems to &quot;work&quot;, and displays two columns (@message and @type):
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:DataGrid id=&quot;dataGrid&quot;
        dataProvider=&quot;{xmlDP.children()}&quot;
        verticalScrollPolicy=&quot;on&quot; /&gt;
&lt;/pre&gt;

I&#039;m not sure how it&#039;d handle the case where child nodes may have different attribute lists. Plus you couldn&#039;t really set column headers, sort compare functions, label functions, etc. unless you explicitly defined the DataGridColumn objects explicitly.

Peter</description>
		<content:encoded><![CDATA[<p>Boaz,</p>
<p>This seems to &#8220;work&#8221;, and displays two columns (@message and @type):</p>
<pre class="code">
&lt;mx:DataGrid id="dataGrid"
        dataProvider="{xmlDP.children()}"
        verticalScrollPolicy="on" /&gt;
</pre>
<p>I&#8217;m not sure how it&#8217;d handle the case where child nodes may have different attribute lists. Plus you couldn&#8217;t really set column headers, sort compare functions, label functions, etc. unless you explicitly defined the DataGridColumn objects explicitly.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boaz</title>
		<link>http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/comment-page-1/#comment-3990</link>
		<dc:creator>Boaz</dc:creator>
		<pubDate>Thu, 06 Nov 2008 17:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/11/05/setting-a-datagrid-controls-data-provider-to-an-xml-object-in-flex/#comment-3990</guid>
		<description>Funny I just did almost the exact thing for work and realize that I have never been able to &quot;just load&quot; the XML without parsing the attributes via E4X and create the DataGridColumns. Wonder if there&#039;s a way to tell the datagrid to just load the attributes as columns?</description>
		<content:encoded><![CDATA[<p>Funny I just did almost the exact thing for work and realize that I have never been able to &#8220;just load&#8221; the XML without parsing the attributes via E4X and create the DataGridColumns. Wonder if there&#8217;s a way to tell the datagrid to just load the attributes as columns?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

