<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Silverlight Databinding – The Observable Collection</title><link>http://weblogs.asp.net/joelvarty/archive/2008/11/17/silverlight-databinding-the-observable-collection.aspx</link><description>If you&amp;#8217;re coming from the ASP.Net world and you want to start building silverlight controls, databinding is one those things that works somewhat the same, yet somewhat differently from the standard DataSource, DataBind() world that you may be used</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Silverlight Databinding – The Observable Collection</title><link>http://weblogs.asp.net/joelvarty/archive/2008/11/17/silverlight-databinding-the-observable-collection.aspx#7247790</link><pubDate>Thu, 05 Nov 2009 13:43:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7247790</guid><dc:creator>joelvarty</dc:creator><author>joelvarty</author><description>&lt;p&gt;Just send the item that changed to the WCF service. Make a method that accepts the single Person object and persist that to the db.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7247790" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Databinding – The Observable Collection</title><link>http://weblogs.asp.net/joelvarty/archive/2008/11/17/silverlight-databinding-the-observable-collection.aspx#7247572</link><pubDate>Thu, 05 Nov 2009 06:32:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7247572</guid><dc:creator>John McIntosh</dc:creator><author>John McIntosh</author><description>&lt;p&gt;Suppose you return UserCollection to the Silverlight client using WCF and the client puts it in a DataGrid.ItemSource. Now someone modifies a name in one of the FirstName cells.&lt;/p&gt;
&lt;p&gt;Now how do you get just that changed cell or row of that cell to go back to the middle tier? Or if you send the whole UserCollection back to the middle tier how can you tell what's changed in the collection?&lt;/p&gt;
&lt;p&gt;In my case, I created an [OperationContract] method in my wcf service called &lt;/p&gt;
&lt;p&gt; &amp;nbsp; SaveChanges(ObservableCollection&amp;lt;Person&amp;gt; person)&lt;/p&gt;
&lt;p&gt;and in my Silverlight client I call &lt;/p&gt;
&lt;p&gt; &amp;nbsp; svc.SaveChanges(datagrid.ItemSource)&lt;/p&gt;
&lt;p&gt;When the WCF method receives the collection, I can see the modified name if I inspect each row however I have no idea how to programatically know that the name has been modified in any given row.&lt;/p&gt;
&lt;p&gt;Can you please explain that?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7247572" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Databinding – The Observable Collection</title><link>http://weblogs.asp.net/joelvarty/archive/2008/11/17/silverlight-databinding-the-observable-collection.aspx#6896790</link><pubDate>Tue, 10 Feb 2009 14:00:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6896790</guid><dc:creator>joelvarty</dc:creator><author>joelvarty</author><description>&lt;p&gt;Hey Tim - asp.net ajax 4 will be getting &amp;quot;live&amp;quot; bindings in the new client templating. &amp;nbsp;Check it out: &lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/bleroy/archive/2008/09/02/using-client-templates-part-2-live-bindings.aspx"&gt;weblogs.asp.net/.../using-client-templates-part-2-live-bindings.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6896790" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Databinding – The Observable Collection</title><link>http://weblogs.asp.net/joelvarty/archive/2008/11/17/silverlight-databinding-the-observable-collection.aspx#6896451</link><pubDate>Tue, 10 Feb 2009 06:58:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6896451</guid><dc:creator>Tim Mischkin</dc:creator><author>Tim Mischkin</author><description>&lt;p&gt;Hi Mr Varty,&lt;/p&gt;
&lt;p&gt;great articel. I love it to use observable collection but is there a way to use it in asp.net as well?&lt;/p&gt;
&lt;p&gt;It seems to me that this collection is only avaiable in WPF and Silverlight? Is there a similar collection for asp.net which works on the same way?&lt;/p&gt;
&lt;p&gt;thx in advance&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Tim Mischkin&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6896451" width="1" height="1"&gt;</description></item></channel></rss>