<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx</link><description>Motivation A CollectionView is your interface into manipulating a collection of data items in an ItemsControl. Common tasks with this view often involve applying sorting, filtering, and grouping. In lieu of supporting a DataGrid control, transactional</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Link Listing - May 20, 2008</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8527888</link><pubDate>Wed, 21 May 2008 15:31:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8527888</guid><dc:creator>Christopher Steen</dc:creator><description>&lt;p&gt;Sharepoint SharePoint Development Conference (FireStarter) at Microsoft on June 11th [Via: Steve Fox...&lt;/p&gt;
</description></item><item><title>WPF 3.5 SP1 Feature: Non-live Scrolling</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8531870</link><pubDate>Thu, 22 May 2008 17:58:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8531870</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;So far for the new WPF 3.5 SP1 features, I've surveyed Item Container Recycling , Data Formatting , and&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8552088</link><pubDate>Mon, 26 May 2008 11:21:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552088</guid><dc:creator>Need Info</dc:creator><description>&lt;p&gt;Can u give an example of IEditableCollectionView with GridViewColumn created dynamically with celltemplate.&lt;/p&gt;
&lt;p&gt;thx&lt;/p&gt;</description></item><item><title>Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8555635</link><pubDate>Wed, 28 May 2008 02:40:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8555635</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;I recently got a question on how to implement IEditableCollectionView with GridViewColumns that are dynamically&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8555645</link><pubDate>Wed, 28 May 2008 02:44:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8555645</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Need Info, I just wrote a post on this: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx&lt;/a&gt;. &amp;nbsp;Please let me know if you have any other questions.&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8585942</link><pubDate>Mon, 09 Jun 2008 17:40:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8585942</guid><dc:creator>Need Info</dc:creator><description>&lt;p&gt;i have a derived class of Listview how can i use NewItemPlaceholderPosition.&lt;/p&gt;
&lt;p&gt;in fact i had xamlparsing exception&lt;/p&gt;</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8586295</link><pubDate>Mon, 09 Jun 2008 19:08:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8586295</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;NewItemPlaceholderPosition is basically the position in the collectionview where a new item will be added. &amp;nbsp;You can specify where you would like to add the new item through the enum. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you give me a little more details on the problem that you are having?&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8591003</link><pubDate>Wed, 11 Jun 2008 10:52:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8591003</guid><dc:creator>Need Info</dc:creator><description>&lt;p&gt;i have a derived class of Listview and i'm adding dynamically the columns into the gridview.&lt;/p&gt;
&lt;p&gt;i'm trying to add the editing capabilities of .net framework 3.5 sp1.&lt;/p&gt;
&lt;p&gt;when i'm trying to use NewItemPlaceholderPosition it gives me an xamlparser exception&lt;/p&gt;</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8594645</link><pubDate>Fri, 13 Jun 2008 19:07:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8594645</guid><dc:creator>vinsibal</dc:creator><description>&lt;P&gt;You're still going to have to be a little more specific on the xamlparser exception and how you are using NewItemPlaceholderPosition.&lt;/P&gt;
&lt;P&gt;IEditableCollectionView is implemented by ListCollectionView and BindingListCollectionView. &amp;nbsp;You can set/get this from your derived class by doing something like this,&lt;/P&gt;
&lt;P&gt;iecv = (IEditableCollectionView)Items;&lt;/P&gt;
&lt;P&gt;iecv.NewItemPlaceholderPosition...&lt;/P&gt;
&lt;P&gt;It is not a DP so you cannot use it in xaml like most of the other properties. &amp;nbsp;Maybe you can send me a code snippet and I can be a little more helpful.&lt;/P&gt;</description></item><item><title>Overview of the editing features in the WPF DataGrid</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#8971715</link><pubDate>Wed, 01 Oct 2008 17:55:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8971715</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;Introduction I’m going to talk a little on the editing features of the DataGrid. I will dive deep into&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9270499</link><pubDate>Sat, 03 Jan 2009 21:51:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9270499</guid><dc:creator>Moi</dc:creator><description>&lt;p&gt;I have a question regarding the IEditableCollectionView as it's implemented for a ListCollectionView. If I have created a ListCollectionView for a collection with a filter, and I call EditItem() on an item that is filtered out, so that it's not part of the collectionview, then calling CommitEdit() will cause an exception.&lt;/p&gt;
&lt;p&gt;I would have thought it would be disirable to be able to call EditItem() on any item in the underlying collection, for example if the item is currently filtered out, but we change some data on it, so that it should now be included in the filtered collectionview, currently we have to first check if the item is in the filtered collection view, if it is, we go the EditItem()/CommitEdit() route, if it's not we have to remove it from the collection, modify it and re-add it to the collection to properly refilter this item, it would have been great if we only had to do it in one fashion, ie beeing able to call EditItem()/CommitEdit() on any item in the collection even if it's currently filtered out.&lt;/p&gt;
&lt;p&gt;Disired behaviour or just an overlook of the fact that collection can be filtered when creating the current IEditableCollectionView implementation?&lt;/p&gt;</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9280410</link><pubDate>Mon, 05 Jan 2009 16:35:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9280410</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Moi,&lt;/p&gt;
&lt;p&gt;When you are using a filter on a collectionview, that collectionview will represent only that filtered view now. &amp;nbsp;So what is presented in the presentation layer is the same as the underlying data which makes it more transparent, easier to debug, and more intuitive actually. &amp;nbsp;So this is all by design.&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9374338</link><pubDate>Sun, 25 Jan 2009 00:51:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9374338</guid><dc:creator>Moshe</dc:creator><description>&lt;p&gt;I have a question like Moi's...&lt;/p&gt;
&lt;p&gt;How would you force the CollectionView to rerun the filter after you've changed the underlying data. The only way I could think of is calling .Refresh()...but doesn't this contradict the idea of IEditableCollectionView?&lt;/p&gt;</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9616819</link><pubDate>Thu, 14 May 2009 21:42:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9616819</guid><dc:creator>Tomi Junnila</dc:creator><description>&lt;p&gt;Could you describe the exact contract that IEditableCollectionView.AddNew has? Is anything other than creating the new object and adding it to the collection needed?&lt;/p&gt;
&lt;p&gt;The reason I'm asking is that I'd need to override the default AddNew in ListCollectionView to create objects of a different type than it otherwise seems to be creating (the types do share an abstract base class). I tried implementing AddNew like described above, and the WPF Toolkit DataGrid I'm using now only allows adding one new item, to the initial NewItemPlaceholder.&lt;/p&gt;</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9625313</link><pubDate>Mon, 18 May 2009 17:18:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9625313</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Tomi,&lt;/p&gt;
&lt;p&gt;Take a look at this blog post, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/10/01/overview-of-the-editing-features-in-the-wpf-datagrid.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/10/01/overview-of-the-editing-features-in-the-wpf-datagrid.aspx&lt;/a&gt;. &amp;nbsp;There is a table showing the contract for IECV.CanAddNew for a ListCollectionView and a BindingListCollectionView.&lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9849915</link><pubDate>Mon, 27 Jul 2009 14:55:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9849915</guid><dc:creator>Rune</dc:creator><description>&lt;p&gt;vinsibal, I do not think Tomi was interested in CanAddNew.&lt;/p&gt;
&lt;p&gt;I have a datasource where adding and deleting rows are expensive operations.&lt;/p&gt;
&lt;p&gt;My hope was that I could implement a ListCollectionView descendant and implement the IEditableCollectionView interface myself. No go, it all falls apart rather quickly. (ListCollectionView simply shuts down; &lt;a rel="nofollow" target="_new" href="http://wpf.codeplex.com/Thread/View.aspx?ThreadId=60656"&gt;http://wpf.codeplex.com/Thread/View.aspx?ThreadId=60656&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;What I want is to virtualize the new row until it is committed. I want to create the new row, but keep it as far away from my physical dataset as possible.&lt;/p&gt;
&lt;p&gt;At the very least, I need to know when the new item gets committed, so I can update my remote dataset.&lt;/p&gt;
&lt;p&gt;PS: The documentation for IEditableCollectionView does not mention IEditableObject with a single word. I am greatful that you spend time educating us, but it would be nice if someone influential could influence the doc-team. ;)&lt;/p&gt;</description></item><item><title>EndEdit()</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9850911</link><pubDate>Tue, 28 Jul 2009 14:54:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9850911</guid><dc:creator>Rune</dc:creator><description>&lt;p&gt;Is there a reason why it is not implemented like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;public void EndEdit()&lt;/p&gt;
&lt;p&gt; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;copy = null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;or just no code at all... (if you don't want the overhead of creating another instance of copy later)&lt;/p&gt;
&lt;p&gt;Seeing as many classes will have to define a blanking method, there should be a good reason why they require every field to be reset rather than just set the instance to null (or do nothing at all).&lt;/p&gt;
&lt;p&gt;As I understand it, with LINQ we're supposed to attribute each member with the [Column] attribute. Is there then not enough information for the framework to handle IEditableObject automatically?&lt;/p&gt;</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9850958</link><pubDate>Tue, 28 Jul 2009 15:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9850958</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Rune,&lt;/p&gt;
&lt;p&gt;It could have been implemented by just setting the copy to null. &amp;nbsp;Here is an official example from the doc team, &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/system.componentmodel.ieditableobject.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.componentmodel.ieditableobject.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As far as linq question, it may have enough information to handle IEO there but IEO is meant to work for POCOs (plain old CLR objects). &lt;/p&gt;
</description></item><item><title>re: WPF 3.5 SP1 feature: IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx#9887626</link><pubDate>Fri, 28 Aug 2009 02:47:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9887626</guid><dc:creator>zeekial</dc:creator><description>&lt;p&gt;When I remove all of the items &amp;quot;Books&amp;quot;. Then attempt to add a book the &amp;quot;CanAddnew&amp;quot; flag becomes false and prevents the item from being inserted. These seems like a bug. Do you know of a workaround? &lt;/p&gt;</description></item></channel></rss>