<?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: Binding a Silverlight 3 DataGrid to dynamic data via IDictionary (Updated)</title>
	<atom:link href="http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/</link>
	<description>Colin Eberhardt&#039;s Adventures in .NET</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:02:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: neel_09</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-95757</link>
		<dc:creator>neel_09</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-95757</guid>
		<description>Hi,
Thanks for this excellent post. this is exactly what I needed. However I have a question, once I get the xml to datagrid, i want to show the selected item of the grid into a dataform. I have tried to set the Itemsource of my dataform in XMLtoGrid() method, and also tried to set dataform.currentItem = datagrid.selectedItem to bind dataform to the current value, but it is not working. Can you tell me what I am doing wrong here?
thanks again.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for this excellent post. this is exactly what I needed. However I have a question, once I get the xml to datagrid, i want to show the selected item of the grid into a dataform. I have tried to set the Itemsource of my dataform in XMLtoGrid() method, and also tried to set dataform.currentItem = datagrid.selectedItem to bind dataform to the current value, but it is not working. Can you tell me what I am doing wrong here?<br />
thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CS</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-70839</link>
		<dc:creator>CS</dc:creator>
		<pubDate>Tue, 09 Aug 2011 21:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-70839</guid>
		<description>Great job!!  I just implemented your solution and it worked great.  I appreciate you posting this here.  There is no way I would have figured that out on my own and I&#039;m currently on a TIGHT deadline (aren&#039;t we all).  Thanks again.</description>
		<content:encoded><![CDATA[<p>Great job!!  I just implemented your solution and it worked great.  I appreciate you posting this here.  There is no way I would have figured that out on my own and I&#8217;m currently on a TIGHT deadline (aren&#8217;t we all).  Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CS</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-70838</link>
		<dc:creator>CS</dc:creator>
		<pubDate>Tue, 09 Aug 2011 21:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-70838</guid>
		<description>Good job!   I used your solution and the paging worked great!!</description>
		<content:encoded><![CDATA[<p>Good job!   I used your solution and the paging worked great!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micah</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-56544</link>
		<dc:creator>Micah</dc:creator>
		<pubDate>Thu, 26 May 2011 21:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-56544</guid>
		<description>You can do grouping using a PagedCollectionView using the binding property indexers

I just do something like this..
_pcv.GroupDescriptions.Add(new PropertyGroupDescription(&quot;Data[My Bound Property Name]&quot;)); (for example)

my dynamic columns creator looks like this.
 private DataGridColumn CreateColumn(string property)
        {
            return new DataGridTextColumn()
            {
                CanUserSort = true,
                Header = property,
                SortMemberPath = String.Format(&quot;Data[{0}]&quot;,property),
                //IsReadOnly = true,
                Binding = new Binding(String.Format(&quot;Data[{0}]&quot;,property))
            };
        }</description>
		<content:encoded><![CDATA[<p>You can do grouping using a PagedCollectionView using the binding property indexers</p>
<p>I just do something like this..<br />
_pcv.GroupDescriptions.Add(new PropertyGroupDescription(&#8220;Data[My Bound Property Name]&#8220;)); (for example)</p>
<p>my dynamic columns creator looks like this.<br />
 private DataGridColumn CreateColumn(string property)<br />
        {<br />
            return new DataGridTextColumn()<br />
            {<br />
                CanUserSort = true,<br />
                Header = property,<br />
                SortMemberPath = String.Format(&#8220;Data[{0}]&#8220;,property),<br />
                //IsReadOnly = true,<br />
                Binding = new Binding(String.Format(&#8220;Data[{0}]&#8220;,property))<br />
            };<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashura</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-49836</link>
		<dc:creator>Ashura</dc:creator>
		<pubDate>Mon, 11 Apr 2011 12:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-49836</guid>
		<description>Thank you very much, the XML example was very helpful ! Great article.</description>
		<content:encoded><![CDATA[<p>Thank you very much, the XML example was very helpful ! Great article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Eberhardt</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-44468</link>
		<dc:creator>Colin Eberhardt</dc:creator>
		<pubDate>Fri, 04 Mar 2011 16:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-44468</guid>
		<description>Sorry - I don;t have time to include grouping in this example.</description>
		<content:encoded><![CDATA[<p>Sorry &#8211; I don;t have time to include grouping in this example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leah Lerner</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-44270</link>
		<dc:creator>Leah Lerner</dc:creator>
		<pubDate>Thu, 03 Mar 2011 09:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-44270</guid>
		<description>Can I get sample of custom grouping, (like your custom sorting)?</description>
		<content:encoded><![CDATA[<p>Can I get sample of custom grouping, (like your custom sorting)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Eberhardt</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated/#comment-41928</link>
		<dc:creator>Colin Eberhardt</dc:creator>
		<pubDate>Wed, 16 Feb 2011 16:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=611#comment-41928</guid>
		<description>I value every &#039;thank you&#039; ... :-)</description>
		<content:encoded><![CDATA[<p>I value every &#8216;thank you&#8217; &#8230; <img src='http://www.scottlogic.co.uk/blog/colin/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

